/* Styles specific to individual pages */

.page-container {
  max-width: 1024px;
  margin: 0 auto;
  padding: 1rem;
}

h1 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.centered {
  text-align: center;
}

/* =============================== */
/*          Home Page Styles       */
/* These styles apply specifically to the home (#/) page. */

/* Hero section */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem 0;
}

.hero-content {
  flex: 1;
}

.hero-content h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--dark);
}

.hero-content p {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  max-width: 600px;
}

/* Stats row */
.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.stat-item strong {
  font-size: 1.5rem;
  color: var(--primary);
}

.stat-item span {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Search bar */
.search-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-end;
}

.search-field {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 200px;
}

.search-field label {
  margin-bottom: 0.25rem;
  font-weight: 500;
  color: var(--dark);
}

.search-field input {
  width: 100%;
  height: 44px;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-base);
  background: var(--surface);
  color: var(--dark);
}

.search-field input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(47, 91, 234, 0.1);
}

.search-actions {
  display: flex;
  align-items: flex-end;
}

/* Hero image */
.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image img {
  max-width: 100%;
  height: auto;
}

/* Trending section */
.trending {
  margin-top: 3rem;
}

.trending h2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.trending-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.home-cargo-card {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.home-cargo-route {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--dark);
}

.home-cargo-meta,
.home-cargo-details {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.home-cargo-actions {
  margin-top: 1rem;
  display: flex;
  justify-content: flex-end;
}

/* Benefits and safety sections */
.benefits,
.safety {
  margin-top: 3rem;
}

.benefits h2,
.safety h2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.benefits ul,
.safety ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.benefits li,
.safety li {
  margin-bottom: 0.75rem;
  padding-left: 1.2rem;
  position: relative;
  line-height: 1.4;
}

/* =============================== */
/*        Cargo List Styles        */
/* These styles apply specifically to the cargo catalog (#/cargo) page. */

.cargo-page-inner {
  display: flex;
  gap: 1.5rem;
}

.filters-sidebar {
  width: 280px;
  flex-shrink: 0;
}

.cargo-content {
  flex: 1;
}

.cargo-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.cargo-header h1 {
  font-size: 1.75rem;
  margin: 0;
  color: var(--dark);
}

.cargo-header p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0.25rem 0 0 0;
}

.sort-and-filter {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Hide filter toggle by default; show via responsive media queries */
.sort-and-filter .filter-toggle {
  display: none;
}

.cargo-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
}

.cargo-card {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.cargo-card.selected {
  border-color: var(--accent);
}

.cargo-card .card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.cargo-card .route {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--dark);
}

.cargo-card .dates {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-align: right;
}

.cargo-card .card-body {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  font-size: 0.875rem;
  color: var(--dark);
  margin-top: 0.5rem;
}

.cargo-card .card-body > div {
  flex: 1 1 45%;
}

.cargo-card .price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  margin-top: 0.5rem;
}

.cargo-card .actions {
  margin-top: 1rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.cargo-card .actions .btn {
  flex: 1;
}

/* Filter sidebar groups */
.filters-sidebar .filter-group {
  margin-bottom: 1.5rem;
}

.filters-sidebar .filter-group h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--dark);
}

.filters-sidebar .filter-actions {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}

.filters-sidebar .filter-actions .btn-outline {
  border: 1px solid var(--primary);
  color: var(--primary);
  background: transparent;
}

.filters-sidebar .filter-actions .btn-outline:hover {
  background: var(--primary);
  color: #fff;
}

.benefits li::before,
.safety li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--success);
}

/* CTA section */
.cta {
  margin-top: 3rem;
  text-align: center;
  background: var(--surface);
  padding: 2rem 1rem;
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
}

.cta h2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.subscribe-form {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.subscribe-form input[type="email"] {
  width: 100%;
  max-width: 300px;
  height: 44px;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-base);
  background: var(--surface);
  color: var(--dark);
}

.subscribe-form input[type="email"]:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(47, 91, 234, 0.1);
}

/* =============================== */
/*      Cargo Details Styles       */
/* Styles for the detailed cargo page (#/cargo/:id) */

.cargo-details-page {
  margin-top: 2rem;
}

.details-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.details-header .route-and-id h1 {
  margin: 0;
  font-size: 2rem;
  font-weight: 700;
  color: var(--dark);
}

.details-header .id-and-status {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.details-content {
  display: flex;
  gap: 2rem;
}

.details-left {
  flex: 2;
}

.details-right {
  flex: 1;
}

.details-left .parameters,
.details-left .route-info,
.details-right .contact-card,
.details-right .map-placeholder {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
  margin-bottom: 1.5rem;
}

.details-left .parameters h3,
.details-left .route-info h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.25rem;
  color: var(--dark);
}

.param-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  color: var(--dark);
}

.param-row span:last-child {
  font-weight: 600;
}

.route-info .route-section {
  margin-bottom: 0.75rem;
}

.map-placeholder {
  height: 250px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.contact-card .price-box {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.75rem;
}

.contact-card .price {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary);
}

.contact-card .payment {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.company-rating {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.company-rating h3 {
  margin: 0;
  font-size: 1.25rem;
  color: var(--dark);
}

.company-rating .rating-stars {
  font-size: 1.25rem;
  color: var(--accent);
}

.contact-card .contact-details p {
  margin: 0.25rem 0;
  font-size: 0.875rem;
  color: var(--dark);
}

.contact-card .card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

/* Header actions container inside cargo details */
.details-header .header-actions {
  display: flex;
  gap: 0.5rem;
}

/* Style header action buttons to be compact */
.details-header .header-actions .btn {
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
}

/* Description section styling */
.details-left .description {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
  margin-bottom: 1.5rem;
}

.details-left .description h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.25rem;
  color: var(--dark);
}

.details-left .description p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--dark);
}

@media (max-width: 1023px) {
  .details-content {
    flex-direction: column;
  }
  .details-left, .details-right {
    flex: 1;
  }
}

/* Responsive tweaks for home page */
@media (max-width: 1023px) {
  .hero {
    flex-direction: column;
    align-items: flex-start;
  }
  .hero-image {
    margin-top: 1.5rem;
    width: 100%;
  }
  .hero-content h1 {
    font-size: 2rem;
  }
  .stats {
    gap: 1rem;
  }
  .search-bar {
    flex-direction: column;
  }
  .search-actions {
    width: 100%;
  }
  .search-actions .btn {
    width: 100%;
  }
}

/* =============================== */
/*         Admin Pages Styles      */

/* Container for all admin pages */
.admin-page {
  padding: 2rem;
}

.admin-page h1 {
  margin-bottom: 0.75rem;
  font-size: 1.75rem;
}

.admin-page .admin-page-description {
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Grid for admin dashboard statistics */
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1rem;
  box-shadow: var(--shadow-soft);
}

.stat-card .stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.stat-card .stat-label {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Table styling for admin lists */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.admin-table th,
.admin-table td {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  font-size: 0.875rem;
}

.admin-table thead {
  background-color: var(--bg);
}

.admin-table th {
  font-weight: 600;
  color: var(--dark);
}

.admin-table tr:nth-child(even) {
  background-color: var(--surface);
}

.admin-table .actions {
  white-space: nowrap;
}

.admin-table .actions .btn {
  margin-right: 0.25rem;
}

/* Search input for admin lists */
.search-input {
  width: 100%;
  max-width: 300px;
  padding: 0.5rem 0.75rem;
  margin-bottom: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-base);
  background: var(--surface);
  color: var(--dark);
  font-size: 0.875rem;
}

.search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(47, 91, 234, 0.1);
}

@media (max-width: 767px) {
  .trending-grid {
    grid-template-columns: 1fr;
  }

  /* Admin tables adapt to card layout on mobile */
  .admin-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
  }
  .admin-table thead {
    display: none;
  }
  .admin-table tr {
    display: block;
    border: 1px solid var(--border);
    border-radius: var(--radius-base);
    background: var(--surface);
    margin-bottom: 1rem;
    padding: 0.75rem;
    box-shadow: var(--shadow-soft);
  }
  .admin-table td {
    display: flex;
    justify-content: space-between;
    padding: 0.25rem 0;
    border-bottom: none;
    font-size: 0.875rem;
  }
  .admin-table td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--dark);
    margin-right: 0.5rem;
  }
  .admin-table td.actions {
    flex-direction: column;
    gap: 0.5rem;
  }
  .admin-table .actions .btn {
    width: 100%;
    margin: 0.25rem 0;
  }
}

/* =============================== */
/*     Owner Cargo List Styles      */
/* Styles for the owner's cargo listing page (#/owner/cargo) */

.owner-cargo-page {
  margin-top: 2rem;
}

.owner-cargo-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}
.owner-cargo-header h1 {
  font-size: 1.75rem;
  margin: 0;
  color: var(--dark);
}
.owner-cargo-header .warning {
  color: var(--danger);
  font-size: 0.875rem;
}
.owner-cargo-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}

.owner-cargo-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.owner-cargo-card .card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.owner-cargo-card .route {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--dark);
}

.owner-cargo-card .dates {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-align: right;
}

.owner-cargo-card .details {
  font-size: 0.875rem;
  color: var(--dark);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}
.owner-cargo-card .details > div {
  flex: 1 1 45%;
}
.owner-cargo-card .status-offers {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
}
.owner-cargo-card .status-offers .offers-count {
  color: var(--primary);
}

.owner-cargo-card .actions {
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.owner-cargo-card .actions .btn {
  flex: 1 1 48%;
  font-size: 0.875rem;
  padding: 0.5rem 0.75rem;
}

/* Tabs container spacing override */
.owner-cargo-page .tabs {
  margin-bottom: 1rem;
}

/* =============================== */
/*       Cargo Form Styles          */
/* Styles for the cargo creation/edit page */

.cargo-form-page {
  margin-top: 2rem;
}

.cargo-form-page h1 {
  margin-bottom: 1.5rem;
  font-size: 1.75rem;
  color: var(--dark);
}

.form-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
  margin-bottom: 1.5rem;
}
.form-section h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.25rem;
  color: var(--dark);
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
  margin-bottom: 2rem;
}
.form-actions .btn {
  flex: 1 1 auto;
  min-width: 150px;
}

/* Form group error state */
.form-group.error label {
  color: var(--danger);
}
.form-group.error input,
.form-group.error select,
.form-group.error textarea {
  border-color: var(--danger);
}

@media (max-width: 1023px) {
  .form-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 767px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .form-actions .btn {
    width: 100%;
  }
}

/* =============================== */
/*        Registration Styles       */
/* Styles for multi-step registration form */

.register-step {
  display: none;
}

.register-step.active {
  display: block;
}

.role-selection {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.role-card {
  flex: 1;
  min-width: 140px;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
  user-select: none;
}

.role-card:hover {
  border-color: var(--primary);
}

.role-card.selected {
  border-color: var(--primary);
  background: rgba(47, 91, 234, 0.05);
}

.form-actions {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
}

.error-message,
.form-error {
  color: var(--danger);
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.auth-links {
  margin-top: 1rem;
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
}

.auth-links a {
  color: var(--primary);
  text-decoration: none;
}

.auth-links a:hover {
  text-decoration: underline;
}

/* Заголовки в auth-формі */
.auth-title {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-align: center;
  color: var(--dark);
}

/* Decorative underline under titles */
.title-underline {
  width: 60px;
  height: 4px;
  background: var(--primary);
  border-radius: 2px;
  margin: 0 auto 1.5rem auto;
}

/* Small section headings within auth forms */
.small-heading {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--dark);
}

/* Role selection cards for login/auth forms */
.auth-role-selection {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.auth-role-card {
  flex: 1;
  min-width: 140px;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1rem;
  text-align: center;
  cursor: pointer;
  user-select: none;
  transition: border-color 0.2s, background-color 0.2s;
}

.auth-role-card:hover {
  border-color: var(--primary);
}

.auth-role-card.selected {
  border-color: var(--primary);
  background: rgba(47, 91, 234, 0.05);
}

/* Password field group with forgot password link */
.password-group {
  display: flex;
  flex-direction: column;
}

.password-group .forgot-link {
  align-self: flex-end;
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: var(--primary);
  text-decoration: none;
}

.password-group .forgot-link:hover {
  text-decoration: underline;
}

/* =============================== */
/*   Cargo Offers Page Styles      */
/* =============================== */

.cargo-offers-page {
  max-width: 1024px;
  margin: 0 auto;
  padding: 1rem;
}

/* Summary card for cargo info */
.summary-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--surface);
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.summary-card .summary-info {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.summary-card .route {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.25rem;
}
.summary-card .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}
.summary-card .summary-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  white-space: nowrap;
}
.offers-total {
  font-weight: 500;
  color: var(--dark);
}

/* Offers list */
.offers-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Individual offer card */
.offer-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.offer-card.accepted {
  border-color: var(--accent);
}
.offer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}
.offer-header .avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1rem;
}
.offer-header .info {
  flex: 1;
  margin-left: 0.75rem;
}
.offer-header .company-name {
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.25rem;
}
.offer-header .rating {
  font-size: 0.875rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.offer-header .rating .reviews-count,
.offer-header .rating .deliveries-count {
  margin-left: 0.25rem;
}
.offer-header .offer-status {
  margin-left: auto;
}

.offer-body {
  font-size: 0.875rem;
  color: var(--text-muted);
}
.offer-body .price {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.25rem;
}
.offer-body .payment,
.offer-body .comment,
.offer-body .date {
  margin-bottom: 0.25rem;
}

.offer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.offer-actions .btn-sm {
  padding: 0.25rem 0.75rem;
  font-size: 0.8125rem;
}

@media (max-width: 767px) {
  .summary-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .offer-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .offer-header .info {
    margin-left: 0;
    margin-top: 0.5rem;
  }
  .offer-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .offer-actions .btn-sm {
    width: 100%;
    text-align: center;
  }

  /* Make buttons full width on mobile for various cards */
  .cargo-card .actions .btn,
  .owner-cargo-card .actions .btn,
  .offer-card .offer-actions .btn,
  .owner-cargo-card .actions .btn,
  .details-left .contact-card .card-actions .btn,
  .summary-card .summary-actions .btn {
    width: 100%;
  }
  /* Ensure actions wrap nicely */
  .cargo-card .actions,
  .owner-cargo-card .actions,
  .offer-card .offer-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

/* =============================== */
/*    Carrier Offers Page Styles    */
/* =============================== */

.carrier-offers-page {
  max-width: 1024px;
  margin: 0 auto;
  padding: 1rem;
}

.carrier-offers-page .subtitle {
  margin-bottom: 1rem;
  color: var(--text-muted);
}

.carrier-offer-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.carrier-offer-card .card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.carrier-offer-card .route {
  font-weight: 600;
  color: var(--dark);
}

.carrier-offer-card .card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.carrier-offer-card .card-body {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.carrier-offer-card .card-body .price {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--dark);
}

.carrier-offer-card .card-actions {
  margin-top: 0.5rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.carrier-offer-card .card-actions .btn-sm {
  padding: 0.25rem 0.75rem;
  font-size: 0.8125rem;
}

@media (max-width: 767px) {
  .carrier-offer-card .card-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .carrier-offer-card .card-actions .btn-sm {
    width: 100%;
    text-align: center;
  }
}

/* Buttons grouping adjustments */
.auth-form .form-actions + .form-actions {
  margin-top: 0.75rem;
}

/* =============================== */
/*         Chat Page Styles        */
/* =============================== */

/* Container for chats page */
.chats-page {
  display: flex;
  gap: 1rem;
  max-width: 1300px;
  margin: 0 auto;
  padding: 1rem;
}

/* Sidebar styling */
.chats-sidebar {
  width: 320px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 150px);
}
.chat-sidebar-title {
  font-size: 1.25rem;
  font-weight: 600;
  padding: 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--dark);
}
.chat-search {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
}
.chat-search input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
}
.chat-list {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  overflow-y: auto;
}
.chat-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background-color 0.2s;
}
.chat-item:hover {
  background: #f3f6ff;
}
.chat-item.active {
  background: rgba(47, 91, 234, 0.1);
  border-left: 4px solid var(--accent);
}
.chat-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}
.chat-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.chat-name {
  font-weight: 600;
  color: var(--dark);
}
.chat-rating-small {
  font-size: 0.875rem;
  color: var(--text-muted);
}
.chat-last-message {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chat-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-size: 0.75rem;
  color: var(--text-muted);
}
.chat-meta .chat-time {
  margin-bottom: 0.25rem;
}
.chat-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
}
.chat-status-dot.offline {
  background: var(--border);
}

/* Main chat area */
.chat-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
  min-height: 500px;
  position: relative;
}
.chat-main.empty {
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid var(--border);
  gap: 1rem;
}
.chat-header .avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1.25rem;
}
.chat-header .name {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--dark);
}
.chat-header .rating {
  font-size: 0.875rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.online-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  display: inline-block;
}
.online-text {
  font-size: 0.75rem;
  margin-left: 0.25rem;
}
.chat-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.chat-header-actions .btn-sm {
  padding: 0.25rem 0.75rem;
  font-size: 0.875rem;
}
.chat-header-actions .deal-status {
  display: inline-block;
}
.chat-cargo-info {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  padding: 0.75rem 1rem;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  align-items: center;
  font-size: 0.875rem;
}
.chat-cargo-info .route {
  font-weight: 600;
  color: var(--dark);
}
.chat-cargo-info .price {
  font-weight: 600;
  color: var(--dark);
}
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  background: var(--bg);
}
.message-row {
  display: flex;
  flex-direction: column;
  margin-bottom: 0.5rem;
}
.message-row .message-bubble {
  padding: 0.5rem 0.75rem;
  border-radius: 12px;
  max-width: 75%;
  word-break: break-word;
}
.message-row.incoming .message-bubble {
  background: #eef1fa;
  color: var(--dark);
  align-self: flex-start;
}
.message-row.outgoing .message-bubble {
  background: var(--primary);
  color: #fff;
  align-self: flex-end;
}
.message-row .message-time {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  align-self: flex-end;
}
.chat-input {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.chat-input .icon-button {
  background: transparent;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  color: var(--primary);
}
.chat-input .icon-button:disabled {
  color: var(--border);
  cursor: default;
}
.chat-input input[type="text"] {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem;
  font-size: 1rem;
}
.chat-input .send-button {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.5rem 1rem;
  cursor: pointer;
}
.chat-input .send-button:disabled {
  background: var(--border);
  color: var(--text-muted);
  cursor: default;
}
.chat-input .chat-closed {
  color: var(--text-muted);
  font-size: 0.875rem;
}
/* Back button on mobile */
.back-to-list {
  display: none;
  margin-right: 0.5rem;
}

/* Responsive styles */
@media (max-width: 1023px) {
  .chats-sidebar {
    width: 260px;
  }
}
@media (max-width: 767px) {
  .chats-page {
    flex-direction: column;
    padding: 0.5rem;
  }
  .chats-sidebar {
    width: 100%;
    max-height: none;
  }
  .chat-main {
    width: 100%;
    margin-top: 1rem;
  }
  .chat-mobile .chats-sidebar {
    display: none;
  }
  .chat-mobile .chat-main {
    margin-top: 0;
  }
  .back-to-list {
    display: inline-block;
  }
  .chat-header-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
}

/* =============================== */
/*       Company Profile Page      */
/* Styles for the company profile (#/companies/:id) */

.company-profile-page {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.company-card {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.company-card-left {
  flex: 0 0 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.company-card-left .company-illustration {
  width: 180px;
  height: 120px;
  background: url('../assets/hero.jpg') no-repeat center/cover;
  border-radius: 12px;
}

.company-card-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.company-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--dark);
}

.verified-badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  background: var(--primary);
  color: #fff;
  border-radius: 4px;
  font-size: 0.75rem;
  margin-bottom: 0.5rem;
}

.company-contact,
.company-details {
  font-size: 0.875rem;
  color: var(--dark);
}

.company-rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.company-rating .rating-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary);
}

.rating-stars-large {
  font-size: 1.25rem;
  color: var(--primary);
}

.reviews-count {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.company-actions {
  margin-top: 1rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.company-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.company-stat-card {
  flex: 1 1 200px;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.company-stat-card strong {
  font-size: 1.5rem;
  color: var(--primary);
}

.company-stat-card span {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.company-active-section {
  margin-top: 1rem;
}

.company-active-section h3 {
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.company-active-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.company-cargo-card,
.company-delivery-card {
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.cargo-card-header {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  color: var(--dark);
}

.cargo-card-meta {
  font-size: 0.875rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cargo-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
}

.company-reviews-section {
  margin-top: 2rem;
}

.company-reviews-section h3 {
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.review-card {
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
  color: var(--dark);
}

.review-rating {
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.review-comment {
  font-size: 0.875rem;
  color: var(--dark);
}

.leave-review-section {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.leave-review-section h3 {
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

/* =============================== */
/*           Profile Page          */
/* Styles for the user profile (#/profile) */

.profile-page {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.profile-card {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  align-items: center;
}

.profile-avatar-placeholder {
  width: 80px;
  height: 80px;
  background: var(--border);
  border-radius: 50%;
}

.profile-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.company-info-card {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.company-info-card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.company-rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.profile-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.profile-active-section {
  margin-top: 1rem;
}

.profile-active-section h3 {
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.profile-active-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.profile-cargo-card {
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.profile-cargo-header {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  color: var(--dark);
}

.profile-cargo-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
}

/* =============================== */
/*      Profile Edit Page Styles    */

.profile-edit-page {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.profile-edit-page form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-section {
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.form-section h2 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.form-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

/* =========================
   Legal pages: Privacy / Terms
   ========================= */

.legal-page {
  background: #f5f7fc;
  color: #111b3d;
  min-height: 100%;
}

.legal-hero {
  padding: 64px 0 42px;
  border-bottom: 1px solid #e1e8f5;
}

.legal-hero__inner {
  max-width: 980px;
}

.legal-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: #2f5bea;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.legal-kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #ffd429;
  box-shadow: 0 0 0 5px rgba(255, 212, 41, 0.18);
}

.legal-hero h1 {
  max-width: 820px;
  margin: 0 0 18px;
  color: #111b3d;
  font-size: 46px;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.legal-hero p {
  max-width: 820px;
  margin: 0;
  color: #6b7a99;
  font-size: 18px;
  line-height: 1.65;
}

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.legal-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 14px;
  border: 1px solid #e1e8f5;
  border-radius: 999px;
  background: #ffffff;
  color: #111b3d;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(17, 27, 61, 0.06);
}

.legal-content-section {
  padding: 48px 0 72px;
}

.legal-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  align-items: start;
  gap: 28px;
}

.legal-sidebar {
  position: sticky;
  top: 88px;
}

.legal-sidebar__card {
  padding: 22px;
  border: 1px solid #e1e8f5;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(17, 27, 61, 0.08);
}

.legal-sidebar__title {
  margin: 0 0 14px;
  color: #111b3d;
  font-size: 15px;
  font-weight: 800;
}

.legal-sidebar__card a {
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid rgba(225, 232, 245, 0.75);
  color: #6b7a99;
  font-size: 14px;
  line-height: 1.3;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.legal-sidebar__card a:last-child {
  border-bottom: 0;
}

.legal-sidebar__card a:hover {
  color: #2f5bea;
  transform: translateX(3px);
}

.legal-card {
  padding: 36px;
  border: 1px solid #e1e8f5;
  border-radius: 26px;
  background: #ffffff;
  box-shadow: 0 20px 55px rgba(17, 27, 61, 0.08);
}

.legal-block {
  padding-bottom: 34px;
  margin-bottom: 34px;
  border-bottom: 1px solid #e1e8f5;
}

.legal-block:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: 0;
}

.legal-block h2 {
  margin: 0 0 16px;
  color: #111b3d;
  font-size: 26px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.legal-block h3 {
  margin: 24px 0 12px;
  color: #111b3d;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 800;
}

.legal-block p {
  margin: 0 0 14px;
  color: #253254;
  font-size: 16px;
  line-height: 1.72;
}

.legal-block p:last-child {
  margin-bottom: 0;
}

.legal-block ul {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.legal-block li {
  position: relative;
  padding-left: 28px;
  color: #253254;
  font-size: 16px;
  line-height: 1.55;
}

.legal-block li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #1ba672;
  font-weight: 900;
}

.legal-block strong {
  color: #111b3d;
  font-weight: 800;
}

.legal-note {
  margin-top: 18px;
  padding: 18px 20px;
  border: 1px solid rgba(47, 91, 234, 0.18);
  border-left: 4px solid #2f5bea;
  border-radius: 16px;
  background: rgba(47, 91, 234, 0.06);
  color: #253254;
  font-size: 15px;
  line-height: 1.6;
}

.legal-contact-card {
  display: inline-flex;
  flex-direction: column;
  gap: 6px;
  min-width: 280px;
  margin-top: 12px;
  padding: 18px 20px;
  border: 1px solid #e1e8f5;
  border-radius: 18px;
  background: #f5f7fc;
}

.legal-contact-card span {
  color: #6b7a99;
  font-size: 13px;
  font-weight: 700;
}

.legal-contact-card a {
  color: #2f5bea;
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
}

.legal-contact-card a:hover {
  text-decoration: underline;
}

/* Laptop */
@media (max-width: 1439px) {
  .legal-hero h1 {
    font-size: 42px;
  }

  .legal-layout {
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 24px;
  }

  .legal-card {
    padding: 32px;
  }
}

/* Tablet */
@media (max-width: 1023px) {
  .legal-hero {
    padding: 48px 0 34px;
  }

  .legal-hero h1 {
    font-size: 36px;
  }

  .legal-hero p {
    font-size: 16px;
  }

  .legal-content-section {
    padding: 34px 0 56px;
  }

  .legal-layout {
    grid-template-columns: 1fr;
  }

  .legal-sidebar {
    position: static;
  }

  .legal-sidebar__card {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 14px;
    border-radius: 18px;
    scrollbar-width: thin;
  }

  .legal-sidebar__title {
    display: none;
  }

  .legal-sidebar__card a {
    flex: 0 0 auto;
    padding: 10px 14px;
    border: 1px solid #e1e8f5;
    border-radius: 999px;
    background: #ffffff;
    color: #111b3d;
    font-size: 13px;
    white-space: nowrap;
  }

  .legal-sidebar__card a:hover {
    transform: none;
    color: #2f5bea;
  }

  .legal-card {
    padding: 26px;
    border-radius: 22px;
  }

  .legal-block h2 {
    font-size: 23px;
  }

  .legal-block p,
  .legal-block li {
    font-size: 15px;
  }
}

/* Mobile */
@media (max-width: 767px) {
  .legal-hero {
    padding: 38px 0 28px;
  }

  .legal-hero h1 {
    font-size: 30px;
    line-height: 1.12;
  }

  .legal-hero p {
    font-size: 15px;
    line-height: 1.6;
  }

  .legal-meta {
    gap: 8px;
  }

  .legal-meta span {
    width: 100%;
    justify-content: center;
    font-size: 12px;
  }

  .legal-content-section {
    padding: 26px 0 44px;
  }

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

  .legal-block {
    padding-bottom: 28px;
    margin-bottom: 28px;
  }

  .legal-block h2 {
    font-size: 21px;
  }

  .legal-block h3 {
    font-size: 17px;
  }

  .legal-block p,
  .legal-block li {
    font-size: 14px;
  }

  .legal-block li {
    padding-left: 24px;
  }

  .legal-note {
    padding: 15px 16px;
    font-size: 14px;
  }

  .legal-contact-card {
    width: 100%;
    min-width: 0;
  }
}

/* =========================
   SmartFreight UA Home Page
   ========================= */

.home-page {
  width: 100%;
  min-width: 0;
  background: #ffffff;
  color: #111b3d;
  overflow-x: hidden;
}

.home-container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Якщо layout випадково обгортає сторінку в контейнер */
#app:has(.home-page),
.app-main:has(.home-page),
.page-content:has(.home-page),
.main-content:has(.home-page) {
  max-width: none;
  width: 100%;
  padding-left: 0;
  padding-right: 0;
}

/* =========================
   Hero
   ========================= */

.home-hero {
  position: relative;
  width: 100%;
  min-height: 620px;
  background: #ffffff;
  overflow: hidden;
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
          radial-gradient(circle at 72% 10%, rgba(47, 91, 234, 0.17), transparent 25%),
          linear-gradient(180deg, #ffffff 0%, #ffffff 72%, rgba(245, 247, 252, 0.55) 100%);
  pointer-events: none;
  z-index: 0;
}

.home-map-bg {
  position: absolute;
  left: 50%;
  top: 58px;
  z-index: 1;
  width: 860px;
  max-width: none;
  transform: translateX(-54%);
  opacity: 0.33;
  pointer-events: none;
}

.home-map-bg img {
  width: 100%;
  height: auto;
  display: block;
}

.home-hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1320px;
  min-height: 620px;
  margin: 0 auto;
  padding: 52px 24px 124px;
  display: grid;
  grid-template-columns: minmax(0, 520px) minmax(560px, 1fr);
  align-items: center;
  gap: 34px;
}

.home-hero-content {
  position: relative;
  z-index: 4;
  max-width: 560px;
  padding-top: 12px;
}

.home-badge {
  display: inline-flex;
  align-items: center;
  height: 25px;
  padding: 0 14px;
  margin-bottom: 20px;
  border-radius: 999px;
  background: rgba(47, 91, 234, 0.1);
  color: #2f5bea;
  font-size: 12px;
  font-weight: 800;
}

.home-hero h1 {
  margin: 0 0 20px;
  color: #111b3d;
  font-size: 44px;
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.045em;
}

.home-hero h1 span {
  color: #2f5bea;
}

.home-hero-subtitle {
  max-width: 520px;
  margin: 0;
  color: #253254;
  font-size: 18px;
  line-height: 1.52;
  font-weight: 500;
}

.home-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(130px, 1fr));
  gap: 24px 48px;
  max-width: 450px;
  margin-top: 64px;
}

.home-stat {
  display: grid;
  grid-template-columns: 30px 1fr;
  grid-template-areas:
    "icon value"
    "icon label";
  align-items: center;
  column-gap: 10px;
}

.home-stat-icon {
  grid-area: icon;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  color: #2f5bea;
  font-size: 20px;
  line-height: 1;
}

.home-stat strong {
  grid-area: value;
  color: #111b3d;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 900;
}

.home-stat small {
  grid-area: label;
  color: #111b3d;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 700;
}

/* Hero visual */

.home-hero-visual {
  position: relative;
  z-index: 3;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.home-truck-img {
  width: 720px;
  max-width: 112%;
  height: auto;
  display: block;
  margin-right: -34px;
  filter: drop-shadow(0 28px 48px rgba(47, 91, 234, 0.16));
}

.hero-label {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 5px 11px;
  border: 1px solid #111b3d;
  border-radius: 8px;
  background: #ffffff;
  color: #111b3d;
  font-size: 12px;
  line-height: 1;
  box-shadow: 0 8px 22px rgba(17, 27, 61, 0.12);
}

.hero-label span {
  color: #2f5bea;
}

.hero-label-weight {
  top: 96px;
  right: 2px;
}

.hero-label-gps {
  top: 212px;
  left: 135px;
}

/* Search */

.home-search {
  position: absolute;
  left: 50%;
  bottom: 60px;
  z-index: 10;
  width: min(960px, calc(100% - 48px));
  min-height: 58px;
  display: grid;
  grid-template-columns: 1fr 34px 1fr 1fr 138px;
  align-items: center;
  transform: translateX(-50%);
  border: 1px solid rgba(47, 91, 234, 0.72);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(47, 91, 234, 0.2);
  overflow: hidden;
}

.home-search-field {
  position: relative;
  height: 58px;
  display: flex;
  align-items: center;
  border-right: 1px solid #e1e8f5;
}

.home-search-field input {
  width: 100%;
  height: 100%;
  padding: 0 42px 0 22px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #111b3d;
  font-size: 14px;
  font-weight: 600;
}

.home-search-field input::placeholder {
  color: #8b97b2;
}

.home-search-icon {
  position: absolute;
  right: 18px;
  color: #111b3d;
  font-size: 15px;
  opacity: 0.7;
}

.home-search-swap {
  position: relative;
  z-index: 2;
  width: 34px;
  height: 34px;
  border: 1px solid #cfd8eb;
  border-radius: 999px;
  background: #ffffff;
  color: #2f5bea;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(17, 27, 61, 0.1);
  transition: transform 0.2s ease, background 0.2s ease;
}

.home-search-swap:hover {
  background: #f5f7fc;
  transform: rotate(180deg);
}

.home-search-btn {
  height: 46px;
  margin: 6px;
  border: 0;
  border-radius: 10px;
  background: #2f5bea;
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(47, 91, 234, 0.24);
  transition: background 0.2s ease, transform 0.2s ease;
}

.home-search-btn:hover {
  background: #3157d5;
  transform: translateY(-1px);
}

/* =========================
   Trending cargo
   ========================= */

.home-section {
  padding: 70px 0 28px;
}

.home-section-head h2,
.home-benefits h2 {
  margin: 0 0 34px;
  color: #111b3d;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 900;
}

.home-slider-wrap {
  position: relative;
}

.home-trending-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 44px;
  padding: 0 46px;
}

.home-cargo-card {
  min-height: 205px;
  padding: 26px 20px 18px;
  border: 1px solid #e1e8f5;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 18px 38px rgba(17, 27, 61, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-cargo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 46px rgba(17, 27, 61, 0.16);
}

.home-cargo-card.is-hidden {
  display: none;
}

.home-cargo-route {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #111b3d;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 900;
}

.home-route-icon {
  color: #2f5bea;
  font-size: 18px;
}

.home-cargo-time {
  margin-top: 10px;
  color: #111b3d;
  font-size: 12px;
  font-weight: 600;
}

.home-cargo-line {
  display: flex;
  gap: 7px;
  align-items: center;
  margin-top: 8px;
  color: #111b3d;
  font-size: 12px;
  line-height: 1.3;
}

.home-card-icon {
  color: #111b3d;
  opacity: 0.8;
}

.home-cargo-price {
  margin-top: 14px;
  color: #111b3d;
  font-size: 24px;
  line-height: 1;
  font-weight: 900;
}

.home-cargo-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  margin-top: 16px;
  border-radius: 7px;
  background: #2f5bea;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.home-cargo-btn:hover {
  background: #3157d5;
  transform: translateY(-1px);
}

.home-card-skeleton {
  min-height: 205px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e1e8f5;
  border-radius: 16px;
  background: #ffffff;
  color: #6b7a99;
  box-shadow: 0 18px 38px rgba(17, 27, 61, 0.08);
}

.home-trending-empty {
  grid-column: 1 / -1;
  min-height: 205px;
  padding: 34px 24px;
  border: 1px dashed #cfd8eb;
  border-radius: 20px;
  background: #ffffff;
  text-align: center;
  box-shadow: 0 18px 38px rgba(17, 27, 61, 0.08);
}

.home-trending-empty h3 {
  margin: 0 0 10px;
  color: #111b3d;
  font-size: 22px;
  font-weight: 900;
}

.home-trending-empty p {
  max-width: 520px;
  margin: 0 auto 18px;
  color: #6b7a99;
  font-size: 15px;
  line-height: 1.5;
}

.home-empty-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 20px;
  border-radius: 10px;
  background: #2f5bea;
  color: #ffffff;
  text-decoration: none;
  font-weight: 800;
}

.home-slider-btn {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 34px;
  height: 34px;
  transform: translateY(-50%);
  border: 1px solid #d8e1f3;
  border-radius: 999px;
  background: #ffffff;
  color: #2f5bea;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(17, 27, 61, 0.1);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.home-slider-btn:hover {
  transform: translateY(-50%) scale(1.06);
}

.home-slider-btn.is-disabled,
.home-slider-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

.home-slider-prev {
  left: 0;
}

.home-slider-next {
  right: 0;
}

.home-slider-controls {
  display: flex;
  justify-content: center;
  margin-top: 22px;
}

.home-slider-controls.is-hidden {
  display: none;
}

.home-slider-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
}

.home-slider-dots button {
  width: 10px;
  height: 5px;
  padding: 0;
  border: 0;
  border-radius: 99px;
  background: #d8deeb;
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.home-slider-dots button.is-active {
  width: 42px;
  background: #2f5bea;
}

/* =========================
   Benefits
   ========================= */

.home-benefits {
  padding: 56px 0 80px;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 44px;
}

.benefit-item {
  text-align: center;
}

.benefit-icon-wrap {
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.benefit-icon {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.benefit-item h3 {
  margin: 0 0 9px;
  color: #111b3d;
  font-size: 16px;
  font-weight: 900;
}

.benefit-item p {
  max-width: 230px;
  margin: 0 auto;
  color: #253254;
  font-size: 13px;
  line-height: 1.35;
}

/* =========================
   Security
   ========================= */

.home-security {
  width: 100%;
  background: #2f5bea;
  padding: 62px 0;
}

.security-inner {
  display: grid;
  grid-template-columns: 1fr 560px;
  gap: 80px;
  align-items: center;
}

.security-left h2 {
  margin: 0 0 42px;
  color: #ffffff;
  font-size: 28px;
  font-weight: 900;
}

.security-tabs {
  display: grid;
  gap: 22px;
  max-width: 430px;
}

.security-tab {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 18px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #ffffff;
  text-align: left;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.security-tab:hover {
  background: rgba(255, 255, 255, 0.13);
  transform: translateX(4px);
}

.security-tab.is-active {
  background: #ffffff;
  color: #111b3d;
  box-shadow: 0 18px 30px rgba(17, 27, 61, 0.18);
}

.security-tab-icon {
  width: 30px;
  height: 30px;
  object-fit: contain;
  flex: 0 0 auto;
  filter: brightness(0) invert(1);
}

.security-tab.is-active .security-tab-icon {
  filter: none;
}

.security-panel {
  position: relative;
  min-height: 205px;
  padding: 34px 42px;
  border-radius: 16px;
  background: #ffffff;
  color: #111b3d;
  overflow: hidden;
  box-shadow: 0 22px 50px rgba(17, 27, 61, 0.2);
}

.security-panel-content {
  position: relative;
  z-index: 2;
  max-width: 430px;
}

.security-panel h3 {
  margin: 0 0 18px;
  color: #111b3d;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 900;
}

.security-panel p {
  margin: 0 0 14px;
  color: #253254;
  font-size: 14px;
  line-height: 1.55;
}

.security-panel p:last-child {
  margin-bottom: 0;
}

.security-panel-watermark {
  position: absolute;
  right: 28px;
  bottom: 18px;
  width: 130px;
  height: 130px;
  opacity: 0.08;
}

.security-panel-watermark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* =========================
   CTA subscribe
   ========================= */

.home-cta-section {
  padding: 86px 0 94px;
  background: #ffffff;
}

.home-cta-card {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.home-cta-card h2 {
  margin: 0 0 12px;
  color: #111b3d;
  font-size: 28px;
  font-weight: 900;
}

.home-cta-card > p {
  max-width: 520px;
  margin: 0 auto 26px;
  color: #253254;
  font-size: 15px;
  line-height: 1.45;
}

.home-subscribe-form {
  max-width: 660px;
  margin: 0 auto;
}

.home-subscribe-row {
  display: grid;
  grid-template-columns: 1fr 150px;
  align-items: center;
  min-height: 48px;
  padding: 6px;
  border: 1px solid rgba(47, 91, 234, 0.6);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 14px 35px rgba(17, 27, 61, 0.12);
}

.home-subscribe-row input {
  width: 100%;
  height: 42px;
  padding: 0 18px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #111b3d;
  font-size: 14px;
}

.home-subscribe-row input::placeholder {
  color: #8b97b2;
}

.home-subscribe-row button {
  height: 40px;
  border: 0;
  border-radius: 8px;
  background: #2f5bea;
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.home-subscribe-row button:hover {
  background: #3157d5;
  transform: translateY(-1px);
}

.home-subscribe-consent {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  max-width: 650px;
  margin: 14px auto 0;
  color: #6b7a99;
  font-size: 12px;
  line-height: 1.45;
  text-align: left;
  cursor: pointer;
}

.home-subscribe-consent input {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: #2f5bea;
}

.home-subscribe-consent a {
  color: #2f5bea;
  font-weight: 700;
  text-decoration: none;
}

.home-subscribe-consent a:hover {
  text-decoration: underline;
}

.home-subscribe-error {
  min-height: 18px;
  margin: 8px 0 0;
  color: #e5484d;
  font-size: 12px;
  line-height: 1.4;
  text-align: left;
}

/* =========================
   Responsive
   ========================= */

@media (min-width: 1440px) {
  .home-hero-inner,
  .home-container {
    max-width: 1320px;
  }

  .home-truck-img {
    width: 720px;
  }
}

@media (max-width: 1439px) {
  .home-hero-inner,
  .home-container {
    max-width: 1180px;
  }

  .home-hero-inner {
    grid-template-columns: minmax(0, 500px) minmax(500px, 1fr);
  }

  .home-hero h1 {
    font-size: 38px;
  }

  .home-truck-img {
    width: 650px;
  }

  .home-map-bg {
    width: 780px;
  }

  .home-trending-grid {
    gap: 30px;
  }

  .security-inner {
    grid-template-columns: 1fr 500px;
    gap: 56px;
  }
}

@media (max-width: 1023px) {
  .home-hero {
    min-height: auto;
  }

  .home-hero-inner {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 42px;
    padding-bottom: 150px;
    text-align: center;
  }

  .home-hero-content {
    max-width: 720px;
    margin: 0 auto;
  }

  .home-hero h1 {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    font-size: 34px;
  }

  .home-hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .home-stats {
    max-width: 560px;
    margin: 38px auto 0;
  }

  .home-hero-visual {
    min-height: 360px;
    justify-content: center;
  }

  .home-truck-img {
    width: min(560px, 100%);
    max-width: 100%;
    margin-right: 0;
  }

  .home-map-bg {
    top: 100px;
    width: 700px;
    max-width: 95vw;
    transform: translateX(-50%);
  }

  .hero-label-weight {
    right: 14%;
  }

  .hero-label-gps {
    left: 22%;
    top: 146px;
  }

  .home-search {
    bottom: 42px;
    grid-template-columns: 1fr 34px 1fr;
    width: calc(100% - 48px);
  }

  .home-search-date {
    grid-column: 1 / 3;
    border-top: 1px solid #e1e8f5;
  }

  .home-search-btn {
    grid-column: 3 / 4;
    grid-row: 2;
  }

  .home-trending-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
  }

  .benefits-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 38px 30px;
  }

  .security-inner {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .security-left h2 {
    text-align: center;
  }

  .security-tabs {
    max-width: 100%;
  }
}

@media (max-width: 767px) {
  .home-container {
    padding: 0 18px;
  }

  .home-hero-inner {
    padding: 34px 18px 310px;
  }

  .home-map-bg {
    top: 130px;
    width: 620px;
    max-width: 130vw;
    opacity: 0.22;
  }

  .home-badge {
    margin-bottom: 14px;
  }

  .home-hero h1 {
    font-size: 28px;
    line-height: 1.18;
  }

  .home-hero-subtitle {
    font-size: 15px;
  }

  .home-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 30px;
  }

  .home-hero-visual {
    min-height: 260px;
  }

  .home-truck-img {
    width: min(390px, 112%);
  }

  .hero-label {
    display: none;
  }

  .home-search {
    bottom: 28px;
    grid-template-columns: 1fr;
    width: calc(100% - 36px);
    border-radius: 18px;
  }

  .home-search-field {
    height: 52px;
    border-right: 0;
    border-bottom: 1px solid #e1e8f5;
  }

  .home-search-date {
    grid-column: auto;
    border-top: 0;
  }

  .home-search-swap {
    display: none;
  }

  .home-search-btn {
    grid-column: auto;
    grid-row: auto;
    width: calc(100% - 12px);
    height: 44px;
  }

  .home-section {
    padding: 46px 0 18px;
  }

  .home-section-head h2,
  .home-benefits h2 {
    font-size: 24px;
    text-align: left;
  }

  .home-slider-btn {
    display: none;
  }

  .home-trending-grid {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 0;
  }

  .home-cargo-card {
    min-height: auto;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .home-security {
    padding: 44px 0;
  }

  .security-left h2 {
    margin-bottom: 24px;
    font-size: 24px;
  }

  .security-tab {
    font-size: 14px;
  }

  .security-panel {
    padding: 26px 22px;
  }

  .home-cta-section {
    padding: 56px 0 64px;
  }

  .home-cta-card h2 {
    font-size: 24px;
  }

  .home-subscribe-row {
    grid-template-columns: 1fr;
    padding: 8px;
  }

  .home-subscribe-row input {
    height: 44px;
    text-align: center;
  }

  .home-subscribe-row button {
    height: 44px;
  }

  .home-subscribe-consent {
    font-size: 12px;
  }
}

/* ===============================
   Login Page SmartFreight UA
   =============================== */

.login-page {
  position: relative;
  width: 100%;
  min-height: calc(100vh - 260px);
  overflow: hidden;
  background: #ffffff;
  color: #111b3d;
}

.login-page-bg-map {
  position: absolute;
  top: 82px;
  right: 80px;
  width: 820px;
  max-width: 54vw;
  opacity: 0.34;
  pointer-events: none;
  z-index: 0;
}

.login-page-bg-map img {
  width: 100%;
  height: auto;
  display: block;
}

.login-layout {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1320px;
  min-height: 650px;
  margin: 0 auto;
  padding: 84px 24px 72px;
  display: grid;
  grid-template-columns: 450px minmax(0, 1fr);
  align-items: center;
  gap: 72px;
}

.login-card {
  width: 100%;
  max-width: 450px;
}

.login-title-wrap {
  margin-bottom: 22px;
}

.login-title-wrap h1 {
  margin: 0;
  color: #111b3d;
  font-size: 34px;
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -0.035em;
}

.login-title-wave {
  width: 210px;
  height: 14px;
  margin-top: 8px;
  background-image:
          url("data:image/svg+xml,%3Csvg width='250' height='16' viewBox='0 0 250 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 8C8 0 16 16 24 8C32 0 40 16 48 8C56 0 64 16 72 8C80 0 88 16 96 8C104 0 112 16 120 8C128 0 136 16 144 8C152 0 160 16 168 8C176 0 184 16 192 8C200 0 208 16 216 8C224 0 232 16 240 8C244 4 247 4 250 6' stroke='%232F5BEA' stroke-width='2'/%3E%3Cpath d='M0 13C8 5 16 21 24 13C32 5 40 21 48 13C56 5 64 21 72 13C80 5 88 21 96 13C104 5 112 21 120 13C128 5 136 21 144 13C152 5 160 21 168 13C176 5 184 21 192 13C200 5 208 21 216 13C224 5 232 21 240 13C244 9 247 9 250 11' stroke='%232F5BEA' stroke-opacity='.45' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

.login-role-block {
  margin-bottom: 28px;
}

.login-section-title {
  margin: 0 0 15px;
  color: #111b3d;
  font-size: 23px;
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.login-role-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.login-role-card {
  height: 118px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 13px;
  border: 1px solid #e3e9f6;
  border-radius: 8px;
  background: #ffffff;
  color: #111b3d;
  cursor: pointer;
  box-shadow: 0 16px 30px rgba(17, 27, 61, 0.045);
  transition:
          border-color 0.2s ease,
          box-shadow 0.2s ease,
          transform 0.2s ease,
          background 0.2s ease;
}

.login-role-card:hover {
  transform: translateY(-2px);
  border-color: rgba(47, 91, 234, 0.55);
  box-shadow: 0 18px 38px rgba(47, 91, 234, 0.1);
}

.login-role-card.is-selected {
  border: 2px solid #2f5bea;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(47, 91, 234, 0.12);
}

.login-role-icon {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.login-role-card span {
  color: #111b3d;
  font-size: 17px;
  line-height: 1.2;
  font-weight: 500;
}

.login-form {
  display: block;
}

.login-field {
  margin-bottom: 15px;
}

.login-field input {
  width: 100%;
  height: 44px;
  padding: 0 18px;
  border: 1px solid #9da6b8;
  border-radius: 8px;
  background: #ffffff;
  color: #111b3d;
  font-size: 14px;
  font-weight: 500;
  outline: none;
  transition:
          border-color 0.2s ease,
          box-shadow 0.2s ease;
}

.login-field input::placeholder {
  color: #8a94aa;
}

.login-field input:focus {
  border-color: #2f5bea;
  box-shadow: 0 0 0 4px rgba(47, 91, 234, 0.12);
}

.login-forgot-row {
  display: flex;
  justify-content: flex-end;
  margin-top: -5px;
  margin-bottom: 17px;
}

.login-forgot-row a {
  color: #2f5bea;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.login-forgot-row a:hover {
  color: #244bd0;
}

.login-error {
  min-height: 18px;
  margin: -6px 0 12px;
  color: #e5484d;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 600;
}

.login-actions {
  display: grid;
  gap: 15px;
}

.login-primary-btn,
.login-outline-btn {
  width: 100%;
  min-height: 46px;
  border-radius: 8px;
  font-size: 16px;
  line-height: 1;
  font-weight: 800;
  cursor: pointer;
  transition:
          background 0.2s ease,
          color 0.2s ease,
          border-color 0.2s ease,
          transform 0.2s ease,
          box-shadow 0.2s ease;
}

.login-primary-btn {
  border: 1px solid #2f5bea;
  background: #2f5bea;
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(47, 91, 234, 0.16);
}

.login-primary-btn:hover {
  background: #274fd3;
  border-color: #274fd3;
  transform: translateY(-1px);
}

.login-outline-btn {
  border: 2px solid #111b3d;
  background: #ffffff;
  color: #111b3d;
}

.login-outline-btn:hover {
  background: #111b3d;
  color: #ffffff;
  transform: translateY(-1px);
}

.login-primary-btn:disabled,
.login-outline-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

/* Right visual */

.login-visual {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-truck-img {
  width: 650px;
  max-width: 108%;
  height: auto;
  display: block;
  margin-right: -30px;
  filter: drop-shadow(0 24px 42px rgba(47, 91, 234, 0.14));
}

.login-label {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 28px;
  padding: 5px 11px;
  border: 1px solid #111b3d;
  border-radius: 8px;
  background: #ffffff;
  color: #111b3d;
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 8px 22px rgba(17, 27, 61, 0.12);
}

.login-label span {
  color: #2f5bea;
}

.login-label strong {
  font-weight: 800;
}

.login-label-weight {
  top: 70px;
  right: 10px;
}

.login-label-gps {
  top: 210px;
  left: 175px;
}

.login-label-free {
  right: 105px;
  bottom: 54px;
}

/* ===============================
   Login responsive
   =============================== */

@media (max-width: 1439px) {
  .login-layout {
    max-width: 1180px;
    grid-template-columns: 430px minmax(0, 1fr);
    gap: 54px;
    min-height: 620px;
    padding-top: 72px;
  }

  .login-truck-img {
    width: 590px;
    margin-right: -24px;
  }

  .login-page-bg-map {
    width: 740px;
    right: 30px;
  }

  .login-title-wrap h1 {
    font-size: 32px;
  }

  .login-section-title {
    font-size: 22px;
  }
}

@media (max-width: 1023px) {
  .login-page {
    min-height: auto;
  }

  .login-page-bg-map {
    top: 105px;
    left: 50%;
    right: auto;
    width: 720px;
    max-width: 96vw;
    transform: translateX(-50%);
    opacity: 0.22;
  }

  .login-layout {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 44px 24px 58px;
  }

  .login-card {
    max-width: 520px;
    margin: 0 auto;
  }

  .login-title-wrap {
    text-align: center;
  }

  .login-title-wave {
    margin-left: auto;
    margin-right: auto;
  }

  .login-section-title {
    text-align: left;
  }

  .login-visual {
    order: -1;
    min-height: 315px;
  }

  .login-truck-img {
    width: min(490px, 100%);
    max-width: 100%;
    margin-right: 0;
  }

  .login-label-weight {
    top: 22px;
    right: 16%;
  }

  .login-label-gps {
    top: 132px;
    left: 20%;
  }

  .login-label-free {
    right: 22%;
    bottom: 16px;
  }
}

@media (max-width: 767px) {
  .login-layout {
    padding: 34px 18px 50px;
  }

  .login-visual {
    min-height: 220px;
  }

  .login-truck-img {
    width: min(330px, 112%);
  }

  .login-label {
    display: none;
  }

  .login-title-wrap {
    margin-bottom: 20px;
  }

  .login-title-wrap h1 {
    font-size: 32px;
  }

  .login-title-wave {
    width: 180px;
  }

  .login-section-title {
    font-size: 21px;
    margin-bottom: 13px;
  }

  .login-role-grid {
    gap: 13px;
  }

  .login-role-card {
    height: 104px;
    gap: 10px;
  }

  .login-role-icon {
    width: 28px;
    height: 28px;
  }

  .login-role-card span {
    font-size: 16px;
  }

  .login-field {
    margin-bottom: 13px;
  }

  .login-field input {
    height: 44px;
    font-size: 14px;
  }

  .login-forgot-row {
    margin-bottom: 16px;
  }

  .login-primary-btn,
  .login-outline-btn {
    min-height: 46px;
    font-size: 15px;
  }

  .login-actions {
    gap: 13px;
  }
}

@media (max-width: 420px) {
  .login-role-grid {
    grid-template-columns: 1fr;
  }

  .login-role-card {
    height: 96px;
  }
}
/* ===============================
   Register Page SmartFreight UA
   =============================== */

.register-page {
  position: relative;
  width: 100%;
  min-height: calc(100vh - 260px);
  overflow: hidden;
  background: #ffffff;
  color: #111b3d;
}

.register-map-bg {
  position: absolute;
  top: 82px;
  right: 80px;
  width: 820px;
  max-width: 54vw;
  opacity: 0.34;
  pointer-events: none;
  z-index: 0;
}

.register-map-bg img {
  width: 100%;
  height: auto;
  display: block;
}

.register-layout {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1320px;
  min-height: 650px;
  margin: 0 auto;
  padding: 84px 24px 72px;
  display: grid;
  grid-template-columns: 450px minmax(0, 1fr);
  align-items: center;
  gap: 72px;
}

.register-card {
  width: 100%;
  max-width: 450px;
}

.register-title-wrap {
  margin-bottom: 18px;
}

.register-title-wrap h1 {
  margin: 0;
  color: #111b3d;
  font-size: 34px;
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -0.035em;
}

.register-title-wave {
  width: 210px;
  height: 14px;
  margin-top: 8px;
  background-image:
          url("data:image/svg+xml,%3Csvg width='250' height='16' viewBox='0 0 250 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 8C8 0 16 16 24 8C32 0 40 16 48 8C56 0 64 16 72 8C80 0 88 16 96 8C104 0 112 16 120 8C128 0 136 16 144 8C152 0 160 16 168 8C176 0 184 16 192 8C200 0 208 16 216 8C224 0 232 16 240 8C244 4 247 4 250 6' stroke='%232F5BEA' stroke-width='2'/%3E%3Cpath d='M0 13C8 5 16 21 24 13C32 5 40 21 48 13C56 5 64 21 72 13C80 5 88 21 96 13C104 5 112 21 120 13C128 5 136 21 144 13C152 5 160 21 168 13C176 5 184 21 192 13C200 5 208 21 216 13C224 5 232 21 240 13C244 9 247 9 250 11' stroke='%232F5BEA' stroke-opacity='.45' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

/* Progress */

.register-progress {
  display: flex;
  align-items: center;
  width: 220px;
  margin: 0 0 22px;
}

.register-progress-dot {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: #d9e2f3;
  border: 2px solid #d9e2f3;
}

.register-progress-dot.is-active {
  background: #2f5bea;
  border-color: #2f5bea;
}

.register-progress-dot.is-done {
  background: #2f5bea;
  border-color: #2f5bea;
}

.register-progress-line {
  flex: 1;
  height: 2px;
  background: #d9e2f3;
}

/* Steps */

.register-form {
  display: block;
}

.register-step {
  display: none;
}

.register-step.is-active {
  display: block;
}

.register-section-title {
  margin: 0 0 15px;
  color: #111b3d;
  font-size: 23px;
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.register-step-hint {
  margin: -4px 0 16px;
  color: #6b7a99;
  font-size: 14px;
  line-height: 1.4;
}

.register-step-hint strong {
  color: #111b3d;
}

/* Role cards */

.register-role-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 30px;
}

.register-role-card {
  height: 118px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 13px;
  border: 1px solid #e3e9f6;
  border-radius: 8px;
  background: #ffffff;
  color: #111b3d;
  cursor: pointer;
  box-shadow: 0 16px 30px rgba(17, 27, 61, 0.045);
  transition:
          border-color 0.2s ease,
          box-shadow 0.2s ease,
          transform 0.2s ease,
          background 0.2s ease;
}

.register-role-card:hover {
  transform: translateY(-2px);
  border-color: rgba(47, 91, 234, 0.55);
  box-shadow: 0 18px 38px rgba(47, 91, 234, 0.1);
}

.register-role-card.is-selected {
  border: 2px solid #2f5bea;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(47, 91, 234, 0.12);
}

.register-role-icon {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.register-role-card span {
  color: #111b3d;
  font-size: 17px;
  line-height: 1.2;
  font-weight: 500;
}

/* Fields */

.register-fields {
  display: grid;
  gap: 13px;
}

.register-field {
  width: 100%;
}

.register-field input {
  width: 100%;
  height: 44px;
  padding: 0 18px;
  border: 1px solid #9da6b8;
  border-radius: 8px;
  background: #ffffff;
  color: #111b3d;
  font-size: 14px;
  font-weight: 500;
  outline: none;
  transition:
          border-color 0.2s ease,
          box-shadow 0.2s ease;
}

.register-field input::placeholder {
  color: #8a94aa;
}

.register-field input:focus {
  border-color: #2f5bea;
  box-shadow: 0 0 0 4px rgba(47, 91, 234, 0.12);
}

.register-field-error {
  min-height: 16px;
  margin: 4px 0 0;
  color: #e5484d;
  font-size: 12px;
  line-height: 1.3;
  font-weight: 600;
}

.register-common-error {
  min-height: 18px;
  margin: 8px 0 0;
  color: #e5484d;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 600;
}

/* Terms */

.register-terms {
  display: grid;
  grid-template-columns: 18px 1fr;
  align-items: start;
  gap: 10px;
  margin: 8px 0 0;
  color: #111b3d;
  font-size: 14px;
  line-height: 1.35;
  cursor: pointer;
}

.register-terms input {
  width: 18px;
  height: 18px;
  margin-top: 0;
  accent-color: #2f5bea;
}

.register-terms a {
  color: #2f5bea;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.register-terms-error {
  margin-top: 5px;
}

/* Actions */

.register-actions {
  display: grid;
  gap: 13px;
  margin-top: 16px;
}

.register-primary-btn,
.register-outline-btn {
  width: 100%;
  min-height: 46px;
  border-radius: 8px;
  font-size: 16px;
  line-height: 1;
  font-weight: 800;
  cursor: pointer;
  transition:
          background 0.2s ease,
          color 0.2s ease,
          border-color 0.2s ease,
          transform 0.2s ease,
          box-shadow 0.2s ease;
}

.register-primary-btn {
  border: 1px solid #2f5bea;
  background: #2f5bea;
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(47, 91, 234, 0.16);
}

.register-primary-btn:hover {
  background: #274fd3;
  border-color: #274fd3;
  transform: translateY(-1px);
}

.register-outline-btn {
  border: 2px solid #111b3d;
  background: #ffffff;
  color: #111b3d;
}

.register-outline-btn:hover {
  background: #111b3d;
  color: #ffffff;
  transform: translateY(-1px);
}

.register-primary-btn:disabled,
.register-outline-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.register-back-link {
  min-height: 34px;
  border: 0;
  background: transparent;
  color: #2f5bea;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Right visual */

.register-visual {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.register-truck-img {
  width: 650px;
  max-width: 108%;
  height: auto;
  display: block;
  margin-right: -30px;
  filter: drop-shadow(0 24px 42px rgba(47, 91, 234, 0.14));
}

.register-label {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 28px;
  padding: 5px 11px;
  border: 1px solid #111b3d;
  border-radius: 8px;
  background: #ffffff;
  color: #111b3d;
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 8px 22px rgba(17, 27, 61, 0.12);
}

.register-label span {
  color: #2f5bea;
}

.register-label strong {
  font-weight: 800;
}

.register-label-weight {
  top: 70px;
  right: 10px;
}

.register-label-gps {
  top: 210px;
  left: 175px;
}

.register-label-free {
  right: 105px;
  bottom: 54px;
}

/* ===============================
   Register responsive
   =============================== */

@media (max-width: 1439px) {
  .register-layout {
    max-width: 1180px;
    grid-template-columns: 430px minmax(0, 1fr);
    gap: 54px;
    min-height: 620px;
    padding-top: 72px;
  }

  .register-truck-img {
    width: 590px;
    margin-right: -24px;
  }

  .register-map-bg {
    width: 740px;
    right: 30px;
  }

  .register-title-wrap h1 {
    font-size: 32px;
  }

  .register-section-title {
    font-size: 22px;
  }
}

@media (max-width: 1023px) {
  .register-page {
    min-height: auto;
  }

  .register-map-bg {
    top: 105px;
    left: 50%;
    right: auto;
    width: 720px;
    max-width: 96vw;
    transform: translateX(-50%);
    opacity: 0.22;
  }

  .register-layout {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 44px 24px 58px;
  }

  .register-card {
    max-width: 520px;
    margin: 0 auto;
  }

  .register-title-wrap {
    text-align: center;
  }

  .register-title-wave {
    margin-left: auto;
    margin-right: auto;
  }

  .register-progress {
    margin-left: auto;
    margin-right: auto;
  }

  .register-section-title {
    text-align: left;
  }

  .register-visual {
    order: -1;
    min-height: 315px;
  }

  .register-truck-img {
    width: min(490px, 100%);
    max-width: 100%;
    margin-right: 0;
  }

  .register-label-weight {
    top: 22px;
    right: 16%;
  }

  .register-label-gps {
    top: 132px;
    left: 20%;
  }

  .register-label-free {
    right: 22%;
    bottom: 16px;
  }
}

@media (max-width: 767px) {
  .register-layout {
    padding: 34px 18px 50px;
  }

  .register-visual {
    min-height: 220px;
  }

  .register-truck-img {
    width: min(330px, 112%);
  }

  .register-label {
    display: none;
  }

  .register-title-wrap {
    margin-bottom: 16px;
  }

  .register-title-wrap h1 {
    font-size: 32px;
  }

  .register-title-wave {
    width: 180px;
  }

  .register-section-title {
    font-size: 21px;
    margin-bottom: 13px;
  }

  .register-role-grid {
    gap: 13px;
  }

  .register-role-card {
    height: 104px;
    gap: 10px;
  }

  .register-role-icon {
    width: 28px;
    height: 28px;
  }

  .register-role-card span {
    font-size: 16px;
  }

  .register-field input {
    height: 44px;
    font-size: 14px;
  }

  .register-primary-btn,
  .register-outline-btn {
    min-height: 46px;
    font-size: 15px;
  }

  .register-actions {
    gap: 13px;
  }
}

@media (max-width: 420px) {
  .register-role-grid {
    grid-template-columns: 1fr;
  }

  .register-role-card {
    height: 96px;
  }
}

/* ===============================
   Cargo catalog page - SmartFreight UA
   =============================== */

.sf-cargo-page {
  width: 100%;
  min-height: calc(100vh - 72px);
  background: #f5f7fc;
  color: #111b3d;
  padding: 42px 0 80px;
}

.sf-cargo-container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
}

.sf-cargo-layout {
  display: grid;
  grid-template-columns: 255px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

/* Filters */

.sf-filters-sidebar {
  position: sticky;
  top: 92px;
  width: 255px;
  min-width: 255px;
}

.sf-filter-form {
  width: 100%;
  padding: 26px 20px 22px;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 24px 60px rgba(17, 27, 61, 0.12);
}

.sf-filter-title {
  margin: 0 0 28px;
  color: #111b3d;
  font-size: 17px;
  line-height: 1.2;
  font-weight: 900;
}

.sf-filter-group {
  position: relative;
  margin-bottom: 24px;
}

.sf-filter-group h3 {
  margin: 0 0 12px;
  color: #111b3d;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 900;
}

.sf-input-label {
  display: block;
  margin: 0 0 7px;
  color: #111b3d;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 700;
}

.sf-filter-input-wrap {
  position: relative;
  margin-bottom: 10px;
}

.sf-filter-input-wrap input,
.sf-filter-group input,
.sf-filter-select {
  width: 100%;
  height: 34px;
  padding: 0 34px 0 12px;
  border: 1px solid #d7dfef;
  border-radius: 6px;
  background: #ffffff;
  color: #111b3d;
  font-size: 12px;
  font-weight: 600;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.sf-filter-input-wrap input::placeholder,
.sf-filter-group input::placeholder {
  color: #9aa6bc;
}

.sf-filter-input-wrap input:focus,
.sf-filter-group input:focus,
.sf-filter-select:focus {
  border-color: #2f5bea;
  box-shadow: 0 0 0 3px rgba(47, 91, 234, 0.1);
}

.sf-filter-input-wrap span {
  position: absolute;
  top: 50%;
  right: 11px;
  transform: translateY(-50%);
  color: #111b3d;
  font-size: 12px;
  opacity: 0.75;
  pointer-events: none;
}

.sf-route-swap {
  position: absolute;
  top: 86px;
  left: 50%;
  z-index: 2;
  width: 24px;
  height: 24px;
  border: 1px solid #d7dfef;
  border-radius: 999px;
  background: #ffffff;
  color: #2f5bea;
  font-size: 13px;
  line-height: 1;
  transform: translateX(-50%);
  cursor: pointer;
  box-shadow: 0 7px 14px rgba(17, 27, 61, 0.1);
}

.sf-date-swap {
  top: 85px;
  opacity: 0.75;
  cursor: default;
}

.sf-two-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.sf-two-cols input {
  padding: 0 10px;
}

.sf-volume-row {
  margin-top: 8px;
}

.sf-range-fake {
  position: relative;
  height: 28px;
  margin-top: 8px;
}

.sf-range-fake span {
  position: absolute;
  top: 14px;
  left: 2px;
  right: 2px;
  height: 2px;
  background: #aeb8cf;
}

.sf-range-fake i {
  position: absolute;
  top: 6px;
  width: 18px;
  height: 18px;
  border: 1px solid #2f5bea;
  border-radius: 999px;
  background: #ffffff;
}

.sf-range-fake i:nth-child(2) {
  left: 22px;
}

.sf-range-fake i:nth-child(3) {
  right: 22px;
}

/* Checkboxes */

.sf-check-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 12px;
}

.sf-filter-check {
  min-height: 21px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: #111b3d;
  cursor: pointer;
  user-select: none;
}

.sf-filter-check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.sf-filter-check span {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  border: 1px solid #9fa9bd;
  border-radius: 4px;
  background: #ffffff;
  box-shadow: inset 0 0 0 2px #ffffff;
}

.sf-filter-check input:checked + span {
  border-color: #2f5bea;
  background: #2f5bea;
}

.sf-filter-check b {
  color: #111b3d;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 600;
}

.sf-filter-actions {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.sf-apply-btn,
.sf-clear-btn {
  width: 100%;
  min-height: 34px;
  border-radius: 6px;
  font-size: 12px;
  line-height: 1;
  font-weight: 800;
  cursor: pointer;
}

.sf-apply-btn {
  border: 1px solid #2f5bea;
  background: #2f5bea;
  color: #ffffff;
}

.sf-clear-btn {
  border: 1px solid #2f5bea;
  background: #ffffff;
  color: #2f5bea;
}

/* Content top */

.sf-cargo-content {
  min-width: 0;
}

.sf-cargo-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.sf-cargo-top h1 {
  margin: 0 0 8px;
  color: #111b3d;
  font-size: 30px;
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.sf-cargo-top p {
  margin: 0;
  color: #6b7a99;
  font-size: 15px;
  line-height: 1.3;
  font-weight: 600;
}

.sf-cargo-tools {
  display: flex;
  align-items: center;
  gap: 14px;
}

.sf-filter-mobile-btn {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 100px;
  height: 38px;
  border: 1px solid #2f5bea;
  border-radius: 7px;
  background: #2f5bea;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.sf-sort-select {
  width: 230px;
  height: 52px;
  padding: 0 18px;
  border: 1px solid #dce3f2;
  border-radius: 18px;
  background: #ffffff;
  color: #111b3d;
  font-size: 15px;
  font-weight: 700;
  outline: none;
}

/* Cards */

.sf-cargo-list {
  display: grid;
  gap: 14px;
}

.sf-cargo-card {
  min-height: 132px;
  display: grid;
  grid-template-columns: minmax(255px, 1.4fr) 1px minmax(155px, 0.85fr) 1px minmax(130px, 0.75fr) minmax(160px, 0.8fr);
  align-items: stretch;
  gap: 18px;
  padding: 16px 18px;
  border: 2px solid transparent;
  border-radius: 9px;
  background: #ffffff;
  box-shadow: 0 16px 35px rgba(17, 27, 61, 0.09);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.sf-cargo-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 42px rgba(17, 27, 61, 0.12);
}

.sf-cargo-card.is-selected,
.sf-cargo-card:first-child {
  border-color: #ffd21f;
}

.sf-card-route-col,
.sf-card-info-col,
.sf-card-side-col,
.sf-card-price-col {
  min-width: 0;
}

.sf-card-route {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #111b3d;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 900;
  text-decoration: none;
}

.sf-card-route i {
  color: #2f5bea;
  font-style: normal;
  font-size: 18px;
}

.sf-card-route:hover {
  color: #2f5bea;
}

.sf-card-address {
  margin: 8px 0 13px;
  color: #111b3d;
  font-size: 11px;
  line-height: 1.35;
  font-weight: 600;
}

.sf-card-date {
  margin: 0 0 6px;
  color: #111b3d;
  font-size: 11px;
  line-height: 1.3;
  font-weight: 500;
}

.sf-card-date strong {
  font-weight: 800;
}

.sf-card-divider {
  width: 1px;
  background: #d7dfef;
}

.sf-card-info-col,
.sf-card-side-col {
  display: grid;
  align-content: start;
  gap: 9px;
  padding-top: 2px;
}

.sf-info-line {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  color: #111b3d;
  font-size: 12px;
  line-height: 1.25;
  font-weight: 600;
}

.sf-info-line span:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

.sf-info-icon {
  width: 15px;
  flex: 0 0 15px;
  color: #111b3d;
  opacity: 0.82;
  text-align: center;
}

.sf-small-action {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 21px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #111b3d;
  font-size: 11px;
  line-height: 1;
  cursor: pointer;
  text-align: left;
}

.sf-small-action span {
  width: 16px;
  color: #2f5bea;
  font-size: 17px;
  line-height: 1;
}

.sf-small-action b {
  font-weight: 600;
}

.sf-small-action:hover b {
  color: #2f5bea;
}

.sf-card-price-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
}

.sf-card-price {
  margin-bottom: 9px;
  color: #111b3d;
  font-size: 24px;
  line-height: 1;
  font-weight: 900;
  text-align: right;
}

.sf-card-payment {
  margin-bottom: 13px;
  color: #4a5877;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 500;
  text-align: right;
}

.sf-cargo-action-btn {
  min-width: 136px;
  height: 34px;
  border: 1px solid #2f5bea;
  border-radius: 7px;
  background: #2f5bea;
  color: #ffffff;
  font-size: 13px;
  line-height: 1;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.sf-cargo-action-btn:hover {
  background: #274fd3;
  transform: translateY(-1px);
}

.sf-cargo-action-btn.is-disabled {
  border-color: #d7dfef;
  background: #edf1f8;
  color: #6b7a99;
  cursor: not-allowed;
  transform: none;
}

/* Empty / loading */

.sf-cargo-empty {
  min-height: 220px;
  display: grid;
  place-items: center;
  align-content: center;
  padding: 36px;
  text-align: center;
}

.sf-cargo-empty h3 {
  max-width: 420px;
  margin: 0 0 16px;
  color: #6b7a99;
  font-size: 28px;
  line-height: 1.35;
  font-weight: 900;
}

.sf-cargo-empty p {
  max-width: 420px;
  margin: 0;
  color: #6b7a99;
  font-size: 17px;
  line-height: 1.45;
  font-weight: 600;
}

.sf-cargo-empty.is-error h3,
.sf-cargo-empty.is-error p {
  color: #e5484d;
}

.sf-cargo-skeleton {
  height: 132px;
  border-radius: 9px;
  background:
          linear-gradient(90deg, #ffffff 0%, #eef3fb 45%, #ffffff 90%);
  background-size: 240% 100%;
  box-shadow: 0 16px 35px rgba(17, 27, 61, 0.08);
  animation: sfSkeleton 1.2s ease-in-out infinite;
}

@keyframes sfSkeleton {
  0% {
    background-position: 100% 0;
  }

  100% {
    background-position: -100% 0;
  }
}

/* Modal filters */

.sf-filter-modal .sf-filter-form {
  box-shadow: none;
  padding: 0;
  border-radius: 0;
}

/* ===============================
   Responsive
   =============================== */

@media (max-width: 1439px) {
  .sf-cargo-container {
    max-width: 1180px;
  }

  .sf-cargo-card {
    grid-template-columns: minmax(230px, 1.35fr) 1px minmax(145px, 0.8fr) 1px minmax(120px, 0.7fr) minmax(145px, 0.75fr);
    gap: 14px;
  }

  .sf-card-price {
    font-size: 22px;
  }
}

@media (max-width: 1180px) {
  .sf-cargo-layout {
    grid-template-columns: 245px minmax(0, 1fr);
  }

  .sf-filters-sidebar {
    width: 245px;
    min-width: 245px;
  }

  .sf-cargo-card {
    grid-template-columns: 1fr 1px 0.8fr 1px 0.7fr;
  }

  .sf-card-price-col {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid #d7dfef;
  }

  .sf-card-price,
  .sf-card-payment {
    margin: 0;
    text-align: left;
  }

  .sf-card-price-col::before {
    content: "";
  }
}

@media (max-width: 1023px) {
  .sf-cargo-page {
    padding-top: 28px;
  }

  .sf-cargo-layout {
    grid-template-columns: 1fr;
  }

  .sf-filters-sidebar {
    display: none;
  }

  .sf-filter-mobile-btn {
    display: inline-flex;
  }

  .sf-cargo-top {
    align-items: center;
  }

  .sf-cargo-card {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .sf-card-divider {
    display: none;
  }

  .sf-card-info-col,
  .sf-card-side-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-top: 0;
  }

  .sf-card-info-col {
    padding-top: 12px;
    border-top: 1px solid #d7dfef;
  }

  .sf-card-side-col {
    padding-top: 12px;
    border-top: 1px solid #d7dfef;
  }

  .sf-card-price-col {
    grid-column: auto;
  }
}

@media (max-width: 767px) {
  .sf-cargo-container {
    padding: 0 16px;
  }

  .sf-cargo-top {
    display: grid;
    gap: 16px;
  }

  .sf-cargo-top h1 {
    font-size: 26px;
  }

  .sf-cargo-tools {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
  }

  .sf-filter-mobile-btn,
  .sf-sort-select {
    width: 100%;
  }

  .sf-cargo-card {
    padding: 16px;
  }

  .sf-card-route {
    font-size: 17px;
  }

  .sf-card-info-col,
  .sf-card-side-col {
    grid-template-columns: 1fr;
  }

  .sf-card-price-col {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    justify-items: stretch;
  }

  .sf-card-price {
    text-align: left;
  }

  .sf-card-payment {
    text-align: left;
  }

  .sf-cargo-action-btn {
    width: 100%;
    min-width: 0;
    height: 42px;
  }

  .sf-cargo-empty h3 {
    font-size: 23px;
  }

  .sf-cargo-empty p {
    font-size: 15px;
  }
}

/* ===============================
   Profile / Company profile page
   =============================== */

.sf-profile-page {
  width: 100%;
  min-height: calc(100vh - 72px);
  padding: 44px 0 80px;
  background: #f5f7fc;
  color: #111b3d;
}

.sf-company-profile-shell {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 24px;
}

.sf-profile-loading,
.sf-profile-error {
  min-height: 260px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(17, 27, 61, 0.09);
  color: #111b3d;
  font-size: 18px;
  font-weight: 800;
}

.sf-profile-error {
  text-align: center;
  align-content: center;
  gap: 8px;
}

.sf-profile-error h2 {
  margin: 0;
  font-size: 24px;
}

.sf-profile-error p {
  margin: 0;
  color: #6b7a99;
}

/* Main card */

.sf-company-main-card {
  overflow: hidden;
  border-radius: 20px;
  background: #f3f8ff;
  box-shadow: 0 20px 55px rgba(17, 27, 61, 0.13);
}

.sf-company-head {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 280px;
  gap: 34px;
  align-items: center;
  padding: 38px 34px 34px;
  background: #ffffff;
}

.sf-company-illustration {
  min-width: 0;
}

.sf-company-illustration img {
  width: 190px;
  max-width: 100%;
  height: auto;
  display: block;
}

.sf-company-info-block {
  min-width: 0;
}

.sf-company-title-row {
  margin-bottom: 46px;
}

.sf-company-title-row h1 {
  margin: 0 0 8px;
  color: #111b3d;
  font-size: 22px;
  line-height: 1.15;
  font-weight: 900;
}

.sf-company-verified {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 20px;
  padding: 3px 9px;
  border-radius: 999px;
  background: #e7f0ff;
  color: #34446a;
  font-size: 11px;
  line-height: 1;
  font-weight: 700;
}

.sf-company-verified::first-letter {
  color: #2f5bea;
}

.sf-company-contact-grid {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(220px, 1fr);
  gap: 52px;
}

.sf-company-contact-grid h3 {
  margin: 0 0 10px;
  color: #111b3d;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 800;
}

.sf-company-contact-grid p {
  margin: 0 0 8px;
  color: #111b3d;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 500;
}

.sf-company-contact-grid p span {
  display: inline-block;
  width: 20px;
  color: #111b3d;
  opacity: 0.8;
}

.sf-company-contact-grid a {
  color: #2f5bea;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.sf-company-rating-actions {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
}

.sf-company-rating-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  margin-bottom: 6px;
}

.sf-company-rating-row strong {
  color: #111b3d;
  font-size: 34px;
  line-height: 1;
  font-weight: 500;
}

.sf-profile-stars {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #2f5bea;
}

.sf-profile-stars span {
  color: transparent;
  -webkit-text-stroke: 2px #2f5bea;
  font-size: 28px;
  line-height: 1;
}

.sf-profile-stars span.is-filled {
  color: #2f5bea;
  -webkit-text-stroke: 1px #2f5bea;
}

.sf-company-reviews-count {
  margin: 0 0 26px;
  color: #111b3d;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 600;
  text-align: right;
}

.sf-profile-actions-panel {
  display: grid;
  gap: 12px;
}

.sf-profile-primary-btn,
.sf-profile-outline-btn,
.sf-profile-danger-btn {
  width: 100%;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  transition:
          background 0.2s ease,
          color 0.2s ease,
          border-color 0.2s ease,
          transform 0.2s ease;
}

.sf-profile-primary-btn {
  border: 1px solid #2f5bea;
  background: #2f5bea;
  color: #ffffff;
}

.sf-profile-primary-btn:hover {
  background: #274fd3;
  border-color: #274fd3;
  transform: translateY(-1px);
}

.sf-profile-outline-btn {
  border: 2px solid #111b3d;
  background: #ffffff;
  color: #111b3d;
}

.sf-profile-outline-btn:hover {
  background: #111b3d;
  color: #ffffff;
  transform: translateY(-1px);
}

.sf-profile-danger-btn {
  max-width: 230px;
  border: 1px solid #e5484d;
  background: #e5484d;
  color: #ffffff;
}

.sf-profile-danger-btn:hover {
  background: #cf3a3f;
  border-color: #cf3a3f;
}

/* Stats */

.sf-company-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px;
  padding: 38px 24px 28px;
}

.sf-profile-stat-card {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 20px;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(47, 91, 234, 0.11);
}

.sf-profile-stat-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #f1f5fb;
  color: #111b3d;
  font-size: 22px;
}

.sf-profile-stat-card p {
  margin: 0 0 5px;
  color: #111b3d;
  font-size: 12px;
  line-height: 1.25;
  font-weight: 500;
}

.sf-profile-stat-card strong {
  color: #111b3d;
  font-size: 14px;
  line-height: 1;
  font-weight: 900;
}

/* Sections */

.sf-company-section {
  padding: 0 24px 30px;
}

.sf-company-section h2 {
  margin: 0 0 22px;
  color: #111b3d;
  font-size: 19px;
  line-height: 1.2;
  font-weight: 800;
}

.sf-profile-cargo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px;
}

.sf-profile-cargo-card {
  min-width: 0;
  padding: 24px 16px 16px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: #ffffff;
  box-shadow: 0 16px 36px rgba(17, 27, 61, 0.12);
}

.sf-profile-cargo-card:first-child {
  border-color: #2f5bea;
}

.sf-profile-cargo-route {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 10px;
  color: #111b3d;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 900;
  text-decoration: none;
}

.sf-profile-cargo-route i {
  color: #2f5bea;
  font-style: normal;
}

.sf-profile-cargo-date {
  margin: 0 0 8px;
  color: #111b3d;
  font-size: 12px;
  line-height: 1.3;
  font-weight: 500;
}

.sf-profile-cargo-param {
  margin: 0 0 7px;
  color: #111b3d;
  font-size: 11px;
  line-height: 1.35;
  font-weight: 500;
}

.sf-profile-cargo-price {
  display: block;
  margin: 16px 0 14px;
  color: #111b3d;
  font-size: 24px;
  line-height: 1;
  font-weight: 900;
}

.sf-profile-cargo-btn {
  width: 100%;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: #2f5bea;
  color: #ffffff;
  font-size: 13px;
  line-height: 1;
  font-weight: 800;
  text-decoration: none;
}

.sf-profile-cargo-btn:hover {
  background: #274fd3;
}

/* Reviews */

.sf-profile-reviews-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 34px;
}

.sf-profile-review-card {
  padding: 18px 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 32px rgba(17, 27, 61, 0.08);
}

.sf-profile-review-card:first-child {
  border-color: #2f5bea;
}

.sf-profile-review-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.sf-profile-review-author {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.sf-profile-review-avatar {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #c7cbd2;
  color: #111b3d;
  font-size: 9px;
  font-weight: 700;
}

.sf-profile-review-author strong {
  display: inline-block;
  margin-right: 4px;
  color: #111b3d;
  font-size: 14px;
  font-weight: 700;
}

.sf-profile-review-author span {
  color: #111b3d;
  font-size: 12px;
  font-weight: 500;
}

.sf-profile-review-card .sf-profile-stars span {
  font-size: 18px;
  -webkit-text-stroke-width: 1.5px;
}

.sf-profile-review-card p {
  margin: 0;
  color: #111b3d;
  font-size: 12px;
  line-height: 1.45;
  font-weight: 500;
}

.sf-profile-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 30px;
}

.sf-profile-pagination button {
  width: 34px;
  height: 34px;
  border: 1px solid #2f5bea;
  border-radius: 10px;
  background: #ffffff;
  color: #111b3d;
  cursor: pointer;
}

.sf-profile-pagination span {
  color: #111b3d;
  font-size: 14px;
  font-weight: 500;
}

/* Review form */

.sf-profile-review-form-card {
  margin-top: 36px;
  padding: 24px;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(17, 27, 61, 0.11);
}

.sf-profile-review-form-card h2 {
  margin: 0 0 16px;
  color: #111b3d;
  font-size: 18px;
  font-weight: 800;
}

.sf-profile-review-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 18px;
}

.sf-profile-review-form textarea {
  width: 100%;
  min-height: 84px;
  resize: vertical;
  padding: 13px 16px;
  border: 1px solid #cdd6e7;
  border-radius: 7px;
  color: #111b3d;
  font-size: 13px;
  outline: none;
}

.sf-profile-review-form textarea:focus {
  border-color: #2f5bea;
  box-shadow: 0 0 0 3px rgba(47, 91, 234, 0.1);
}

.sf-profile-review-side {
  display: grid;
  gap: 14px;
  align-content: start;
}

.sf-profile-review-stars-input {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sf-profile-review-stars-input button {
  border: 0;
  background: transparent;
  color: #2f5bea;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
}

.sf-profile-review-disabled {
  margin: 0;
  color: #6b7a99;
  font-size: 14px;
  font-weight: 600;
}

/* Empty */

.sf-profile-empty {
  min-height: 180px;
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
  padding: 22px;
  grid-column: 1 / -1;
}

.sf-profile-empty h3 {
  margin: 0 0 12px;
  color: #6b7a99;
  font-size: 24px;
  line-height: 1.25;
  font-weight: 900;
}

.sf-profile-empty p {
  max-width: 320px;
  margin: 0 0 18px;
  color: #6b7a99;
  font-size: 15px;
  line-height: 1.45;
  font-weight: 600;
}

.sf-profile-empty-btn {
  max-width: 190px;
}

.sf-profile-bottom-actions {
  margin-top: 24px;
  display: flex;
  justify-content: flex-start;
}

/* Responsive */

@media (max-width: 1180px) {
  .sf-company-head {
    grid-template-columns: 180px minmax(0, 1fr) 250px;
    gap: 24px;
  }

  .sf-company-illustration img {
    width: 165px;
  }

  .sf-company-contact-grid {
    gap: 28px;
  }

  .sf-company-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sf-profile-cargo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .sf-profile-page {
    padding-top: 28px;
  }

  .sf-company-head {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .sf-company-illustration {
    display: flex;
    justify-content: center;
  }

  .sf-company-title-row {
    margin-bottom: 24px;
  }

  .sf-company-contact-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .sf-company-rating-actions {
    align-items: center;
  }

  .sf-company-rating-row {
    justify-content: center;
  }

  .sf-company-reviews-count {
    text-align: center;
  }

  .sf-profile-actions-panel {
    width: min(320px, 100%);
  }

  .sf-profile-reviews-grid {
    grid-template-columns: 1fr;
  }

  .sf-profile-review-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .sf-company-profile-shell {
    padding: 0 16px;
  }

  .sf-company-head {
    padding: 28px 18px;
  }

  .sf-company-stats {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 24px 16px;
  }

  .sf-company-section {
    padding: 0 16px 26px;
  }

  .sf-profile-cargo-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .sf-company-rating-row strong {
    font-size: 30px;
  }

  .sf-profile-stars span {
    font-size: 24px;
  }

  .sf-profile-review-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .sf-profile-review-stars-input button {
    font-size: 28px;
  }

  .sf-profile-danger-btn {
    max-width: none;
  }
}
/* ===============================
   Cargo create / edit form
   =============================== */

.sf-cargo-form-page {
  width: 100%;
  min-height: calc(100vh - 72px);
  padding: 42px 0 80px;
  background: #f5f7fc;
  color: #111b3d;
}

.sf-cargo-form-shell {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
}

.sf-cargo-form-title {
  margin: 0 0 28px;
  color: #111b3d;
  font-size: 32px;
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.sf-cargo-form-card {
  overflow: hidden;
  border: 1px solid #dbe3f2;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 20px 55px rgba(17, 27, 61, 0.09);
}

.sf-cargo-section {
  padding: 24px 20px 26px;
  border-bottom: 1px solid #cfd7e6;
}

.sf-cargo-section-last {
  border-bottom: 0;
}

.sf-cargo-section h2 {
  margin: 0 0 22px;
  color: #111b3d;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 900;
}

.sf-cargo-section h3,
.sf-cargo-radio-group h4,
.sf-cargo-checkbox-group h4 {
  margin: 0 0 12px;
  color: #111b3d;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 900;
}

/* Fields */

.sf-cargo-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.sf-cargo-field span {
  color: #111b3d;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 800;
}

.sf-cargo-field span b {
  margin-left: 3px;
  color: #e5484d;
}

.sf-cargo-field input,
.sf-cargo-field select,
.sf-cargo-field textarea {
  width: 100%;
  min-width: 0;
  height: 48px;
  padding: 0 14px;
  border: 1px solid #d6dfef;
  border-radius: 14px;
  background: #ffffff;
  color: #111b3d;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 600;
  outline: none;
  transition:
          border-color 0.2s ease,
          box-shadow 0.2s ease,
          background 0.2s ease;
}

.sf-cargo-field textarea {
  min-height: 136px;
  padding: 14px;
  resize: vertical;
}

.sf-cargo-field input::placeholder,
.sf-cargo-field textarea::placeholder {
  color: #8b96aa;
  font-weight: 500;
}

.sf-cargo-field input:focus,
.sf-cargo-field select:focus,
.sf-cargo-field textarea:focus {
  border-color: #2f5bea;
  box-shadow: 0 0 0 4px rgba(47, 91, 234, 0.1);
}

.sf-cargo-field.has-error input,
.sf-cargo-field.has-error select,
.sf-cargo-field.has-error textarea {
  border-color: #e5484d;
  background: #fffafa;
}

.sf-field-error {
  min-height: 16px;
  color: #e5484d;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 600;
}

/* Basic info */

.sf-cargo-main-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 20px;
}

/* Cargo info */

.sf-cargo-info-layout {
  display: grid;
  grid-template-columns: 250px 240px 210px minmax(280px, 1fr);
  gap: 28px;
  align-items: start;
}

.sf-cargo-load-col,
.sf-cargo-selects-col,
.sf-cargo-numbers-col,
.sf-cargo-description-col {
  min-width: 0;
}

.sf-cargo-selects-col,
.sf-cargo-numbers-col {
  display: grid;
  gap: 22px;
}

/* Contact */

.sf-cargo-contact-layout {
  display: grid;
  grid-template-columns: 250px 250px 250px minmax(170px, 1fr);
  gap: 28px;
  align-items: start;
}

.sf-cargo-contact-col {
  min-width: 0;
  display: grid;
  gap: 14px;
}

.sf-cargo-messengers {
  align-content: start;
}

/* Finance */

.sf-cargo-finance-layout {
  display: grid;
  grid-template-columns: 260px 250px minmax(300px, 1fr);
  gap: 34px;
  align-items: start;
}

.sf-cargo-finance-col {
  min-width: 0;
  display: grid;
  gap: 18px;
}

/* Choices */

.sf-cargo-radio-list,
.sf-cargo-checkbox-list {
  display: grid;
  gap: 10px;
}

.sf-cargo-choice {
  min-height: 24px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #111b3d;
  cursor: pointer;
  user-select: none;
}

.sf-cargo-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.sf-cargo-choice span {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  border: 1px solid #a8b2c4;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: inset 0 0 0 4px #ffffff;
  transition:
          background 0.2s ease,
          border-color 0.2s ease,
          box-shadow 0.2s ease;
}

.sf-cargo-checkbox-list .sf-cargo-choice span {
  border-radius: 5px;
}

.sf-cargo-choice input:checked + span {
  border-color: #2f5bea;
  background: #2f5bea;
}

.sf-cargo-choice b {
  color: #111b3d;
  font-size: 14px;
  line-height: 1.25;
  font-weight: 600;
}

.sf-cargo-choice:hover b {
  color: #2f5bea;
}

/* Bottom actions */

.sf-cargo-bottom-bar {
  min-height: 78px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 500px);
  gap: 22px;
  align-items: center;
  margin-top: 0;
  padding: 18px 0 0;
}

.sf-cargo-bottom-left {
  display: grid;
  grid-template-columns: 160px 220px 220px;
  gap: 18px;
}

.sf-cargo-danger-btn,
.sf-cargo-outline-btn,
.sf-cargo-primary-btn {
  width: 100%;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  font-size: 15px;
  line-height: 1;
  font-weight: 900;
  cursor: pointer;
  transition:
          background 0.2s ease,
          color 0.2s ease,
          border-color 0.2s ease,
          transform 0.2s ease;
}

.sf-cargo-danger-btn {
  border: 1px solid #ff2f2f;
  background: #ffffff;
  color: #ff2f2f;
}

.sf-cargo-danger-btn:hover {
  background: #ff2f2f;
  color: #ffffff;
  transform: translateY(-1px);
}

.sf-cargo-outline-btn {
  border: 2px solid #111b3d;
  background: #ffffff;
  color: #111b3d;
}

.sf-cargo-outline-btn:hover {
  background: #111b3d;
  color: #ffffff;
  transform: translateY(-1px);
}

.sf-cargo-primary-btn {
  border: 1px solid #2f5bea;
  background: #2f5bea;
  color: #ffffff;
}

.sf-cargo-primary-btn:hover {
  background: #274fd3;
  border-color: #274fd3;
  transform: translateY(-1px);
}

.sf-cargo-danger-btn:disabled,
.sf-cargo-outline-btn:disabled,
.sf-cargo-primary-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

/* Preview modal */

.sf-cargo-preview-card {
  padding: 6px;
}

.sf-cargo-preview-route {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  color: #111b3d;
  font-size: 22px;
  font-weight: 900;
}

.sf-cargo-preview-route span {
  color: #2f5bea;
}

.sf-cargo-preview-card p {
  margin: 0 0 18px;
  color: #6b7a99;
  font-size: 14px;
  font-weight: 600;
}

.sf-cargo-preview-grid {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 10px 18px;
}

.sf-cargo-preview-grid span {
  color: #6b7a99;
  font-size: 13px;
  font-weight: 700;
}

.sf-cargo-preview-grid b {
  color: #111b3d;
  font-size: 14px;
  font-weight: 900;
}

/* Access denied */

.sf-form-access-denied {
  padding: 48px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 20px 55px rgba(17, 27, 61, 0.09);
}

.sf-form-access-denied h1 {
  margin: 0 0 10px;
  color: #111b3d;
  font-size: 28px;
}

.sf-form-access-denied p {
  margin: 0;
  color: #6b7a99;
}

/* ===============================
   Responsive
   =============================== */

@media (max-width: 1200px) {
  .sf-cargo-info-layout {
    grid-template-columns: 220px 1fr 1fr;
  }

  .sf-cargo-description-col {
    grid-column: 1 / -1;
  }

  .sf-cargo-contact-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sf-cargo-finance-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sf-cargo-finance-col:last-child {
    grid-column: 1 / -1;
  }

  .sf-cargo-bottom-bar {
    grid-template-columns: 1fr;
  }

  .sf-cargo-bottom-left {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .sf-cargo-form-page {
    padding: 28px 0 110px;
  }

  .sf-cargo-form-title {
    font-size: 28px;
  }

  .sf-cargo-main-grid {
    grid-template-columns: 1fr;
  }

  .sf-cargo-info-layout,
  .sf-cargo-contact-layout,
  .sf-cargo-finance-layout {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .sf-cargo-finance-col:last-child {
    grid-column: auto;
  }

  .sf-cargo-bottom-bar {
    position: sticky;
    bottom: 0;
    z-index: 20;
    margin: 0 -24px;
    padding: 14px 24px;
    border-top: 1px solid #dbe3f2;
    background: rgba(245, 247, 252, 0.94);
    backdrop-filter: blur(12px);
    box-shadow: 0 -12px 32px rgba(17, 27, 61, 0.12);
  }

  .sf-cargo-bottom-left {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

@media (max-width: 640px) {
  .sf-cargo-form-shell {
    padding: 0 16px;
  }

  .sf-cargo-form-card {
    border-radius: 16px;
  }

  .sf-cargo-section {
    padding: 22px 16px;
  }

  .sf-cargo-section h2 {
    font-size: 20px;
  }

  .sf-cargo-field input,
  .sf-cargo-field select,
  .sf-cargo-field textarea {
    height: 46px;
    border-radius: 12px;
    font-size: 14px;
  }

  .sf-cargo-field textarea {
    min-height: 120px;
  }

  .sf-cargo-bottom-bar {
    margin: 0 -16px;
    padding: 12px 16px;
  }

  .sf-cargo-primary-btn,
  .sf-cargo-outline-btn,
  .sf-cargo-danger-btn {
    min-height: 46px;
  }

  .sf-cargo-preview-grid {
    grid-template-columns: 1fr;
  }
}

/* Fix cargo form bottom buttons width */
.sf-cargo-bottom-bar {
  grid-template-columns: auto auto;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.sf-cargo-bottom-left {
  display: flex;
  align-items: center;
  gap: 18px;
}

.sf-cargo-bottom-left .sf-cargo-danger-btn {
  width: 160px;
}

.sf-cargo-bottom-left .sf-cargo-outline-btn {
  width: 220px;
}

.sf-cargo-bottom-bar > .sf-cargo-primary-btn {
  width: 260px;
  max-width: 260px;
  flex: 0 0 260px;
}

/* Tablet/mobile */
@media (max-width: 900px) {
  .sf-cargo-bottom-bar {
    grid-template-columns: 1fr;
    justify-content: stretch;
  }

  .sf-cargo-bottom-left {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .sf-cargo-bottom-left .sf-cargo-danger-btn,
  .sf-cargo-bottom-left .sf-cargo-outline-btn,
  .sf-cargo-bottom-bar > .sf-cargo-primary-btn {
    width: 100%;
    max-width: none;
    flex: none;
  }
}
/* =============================== */
/* Admin Login Clean Page          */
/* =============================== */

body.admin-login-only {
  background: #f5f7fc;
}

body.admin-login-only header,
body.admin-login-only .main-footer,
body.admin-login-only .admin-layout,
body.admin-login-only .admin-sidebar,
body.admin-login-only .admin-topbar {
  display: none !important;
}

.admin-login-clean-layout {
  min-height: 100vh;
  width: 100%;
  background: #f5f7fc;
}

.sf-admin-login-page {
  min-height: 100vh;
  width: 100%;
  background: #f5f7fc;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 18px;
  box-sizing: border-box;
}

.sf-admin-login-card {
  width: 100%;
  max-width: 460px;
  background: #ffffff;
  border: 1px solid #dfe7f6;
  border-radius: 24px;
  box-shadow: 0 14px 38px rgba(17, 27, 61, 0.1);
  padding: 34px;
  box-sizing: border-box;
}

.sf-admin-login-brand {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.sf-admin-login-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #111b3d;
  text-decoration: none;
  font-weight: 800;
  font-size: 19px;
  line-height: 1;
}

.sf-admin-login-logo img {
  width: 64px;
  height: auto;
  display: block;
}

.sf-admin-login-head {
  text-align: center;
  margin-bottom: 26px;
}

.sf-admin-login-kicker {
  margin: 0 0 8px;
  color: #2f5bea;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sf-admin-login-head h1 {
  margin: 0;
  color: #111b3d;
  font-size: 32px;
  line-height: 1.15;
  font-weight: 900;
}

.sf-admin-login-line {
  width: 64px;
  height: 4px;
  background: #2f5bea;
  border-radius: 999px;
  margin: 18px auto 16px;
}

.sf-admin-login-head p:last-child {
  margin: 0 auto;
  max-width: 360px;
  color: #6b7a99;
  font-size: 15px;
  line-height: 1.45;
}

.sf-admin-login-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.sf-admin-login-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sf-admin-login-field span {
  color: #111b3d;
  font-size: 15px;
  font-weight: 800;
}

.sf-admin-login-field input {
  width: 100%;
  height: 52px;
  border: 1px solid #dbe4f5;
  border-radius: 16px;
  background: #ffffff;
  color: #111b3d;
  padding: 0 16px;
  font-size: 15px;
  font-weight: 600;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.sf-admin-login-field input::placeholder {
  color: #8a96ad;
  font-weight: 500;
}

.sf-admin-login-field input:focus {
  border-color: #2f5bea;
  box-shadow: 0 0 0 4px rgba(47, 91, 234, 0.12);
}

.sf-admin-login-error {
  min-height: 20px;
  margin: -4px 0 0;
  color: #ef4444;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

.sf-admin-login-submit {
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 16px;
  background: #2f5bea;
  color: #ffffff;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: none;
  transition: background 0.18s ease, transform 0.18s ease, opacity 0.18s ease;
}

.sf-admin-login-submit:hover {
  background: #244ed8;
  transform: translateY(-1px);
}

.sf-admin-login-submit:disabled {
  cursor: not-allowed;
  opacity: 0.72;
  transform: none;
}

@media (max-width: 767px) {
  .sf-admin-login-page {
    align-items: flex-start;
    padding: 28px 14px;
  }

  .sf-admin-login-card {
    max-width: 100%;
    border-radius: 22px;
    padding: 26px 18px;
  }

  .sf-admin-login-logo img {
    width: 56px;
  }

  .sf-admin-login-logo {
    font-size: 17px;
  }

  .sf-admin-login-head h1 {
    font-size: 26px;
  }

  .sf-admin-login-head p:last-child {
    font-size: 14px;
  }

  .sf-admin-login-field input,
  .sf-admin-login-submit {
    min-height: 48px;
    height: 48px;
  }
}
/* =============================== */
/* Admin Cargo Page                */
/* =============================== */

.sf-admin-page {
  width: 100%;
}

.sf-admin-page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.sf-admin-page-head h1 {
  margin: 0 0 8px;
  color: #111b3d;
  font-size: 34px;
  line-height: 1.15;
  font-weight: 900;
}

.sf-admin-page-head p {
  margin: 0;
  color: #6b7a99;
  font-size: 15px;
  font-weight: 600;
}

.sf-admin-toolbar {
  display: grid;
  grid-template-columns: minmax(280px, 420px) 220px;
  gap: 12px;
  margin-bottom: 14px;
}

.sf-admin-toolbar input,
.sf-admin-toolbar select {
  width: 100%;
  height: 46px;
  border: 1px solid #dbe4f5;
  border-radius: 16px;
  background: #ffffff;
  color: #111b3d;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 600;
  outline: none;
  box-sizing: border-box;
}

.sf-admin-toolbar input:focus,
.sf-admin-toolbar select:focus {
  border-color: #2f5bea;
  box-shadow: 0 0 0 4px rgba(47, 91, 234, 0.1);
}

.sf-admin-count {
  margin-bottom: 16px;
  color: #6b7a99;
  font-size: 14px;
  font-weight: 700;
}

.sf-admin-cargo-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sf-admin-cargo-card {
  background: #ffffff;
  border: 1px solid #dfe7f6;
  border-radius: 22px;
  box-shadow: 0 12px 28px rgba(17, 27, 61, 0.08);
  padding: 20px;
}

.sf-admin-cargo-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.sf-admin-cargo-route {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  color: #111b3d;
  font-size: 20px;
  font-weight: 900;
}

.sf-admin-cargo-route span {
  color: #2f5bea;
}

.sf-admin-cargo-address {
  margin: 7px 0 0;
  color: #6b7a99;
  font-size: 14px;
  font-weight: 600;
}

.sf-admin-cargo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 16px 0;
  border-top: 1px solid #edf2fb;
  border-bottom: 1px solid #edf2fb;
}

.sf-admin-cargo-grid div {
  min-width: 0;
}

.sf-admin-cargo-grid span {
  display: block;
  margin-bottom: 5px;
  color: #6b7a99;
  font-size: 12px;
  font-weight: 800;
}

.sf-admin-cargo-grid b {
  display: block;
  color: #111b3d;
  font-size: 14px;
  font-weight: 900;
  word-break: break-word;
}

.sf-admin-cargo-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.sf-admin-btn {
  min-height: 42px;
  border-radius: 14px;
  padding: 0 18px;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #111b3d;
  background: #ffffff;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
}

.sf-admin-btn-primary {
  background: #2f5bea;
  color: #ffffff;
}

.sf-admin-btn-outline {
  border-color: #dbe4f5;
}

.sf-admin-btn-warning {
  background: #fff7d6;
  color: #8a6500;
  border-color: #ffe082;
}

.sf-admin-btn-danger {
  background: #ffe8e8;
  color: #dc2626;
  border-color: #ffcaca;
}

.sf-admin-status {
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 900;
}

.sf-admin-status.is-green {
  background: #dcfce7;
  color: #15803d;
}

.sf-admin-status.is-blue {
  background: #dbeafe;
  color: #1d4ed8;
}

.sf-admin-status.is-grey {
  background: #eef2f7;
  color: #64748b;
}

.sf-admin-status.is-red {
  background: #fee2e2;
  color: #dc2626;
}

.sf-admin-status.is-yellow {
  background: #fef3c7;
  color: #92400e;
}

.sf-admin-empty,
.sf-admin-loading {
  width: 100%;
  min-height: 220px;
  border: 1px dashed #cbd6eb;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.55);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #6b7a99;
  padding: 28px;
  box-sizing: border-box;
}

.sf-admin-empty h2 {
  margin: 0 0 8px;
  color: #6b7a99;
  font-size: 26px;
  font-weight: 900;
}

.sf-admin-empty p {
  margin: 0;
  color: #6b7a99;
  font-size: 16px;
  font-weight: 600;
}

@media (max-width: 1023px) {
  .sf-admin-toolbar {
    grid-template-columns: 1fr;
  }

  .sf-admin-cargo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sf-admin-page-head {
    flex-direction: column;
  }
}

@media (max-width: 767px) {
  .sf-admin-page-head h1 {
    font-size: 28px;
  }

  .sf-admin-cargo-card {
    border-radius: 18px;
    padding: 16px;
  }

  .sf-admin-cargo-main {
    flex-direction: column;
  }

  .sf-admin-cargo-grid {
    grid-template-columns: 1fr;
  }

  .sf-admin-cargo-actions {
    flex-direction: column;
  }

  .sf-admin-btn {
    width: 100%;
  }
}
/* =============================== */
/* Owner cargo tabs fix            */
/* =============================== */

.owner-cargo-tabs {
  display: flex;
  align-items: center;
  gap: 0;
  width: 100%;
  margin: 22px 0 22px;
  border-bottom: 1px solid #dbe3f3;
  overflow-x: auto;
  scrollbar-width: none;
}

.owner-cargo-tabs::-webkit-scrollbar {
  display: none;
}

.owner-cargo-tab {
  position: relative;
  min-height: 44px;
  padding: 0 28px;
  border: 0;
  background: transparent;
  color: #111b3d;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.owner-cargo-tab:hover {
  color: #2f5bea;
}

.owner-cargo-tab.active {
  color: #2f5bea;
}

.owner-cargo-tab.active::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: -1px;
  height: 3px;
  border-radius: 999px 999px 0 0;
  background: #2f5bea;
}

.owner-cargo-tab:focus {
  outline: none;
}

.owner-cargo-tab:focus-visible {
  outline: 3px solid rgba(47, 91, 234, 0.22);
  outline-offset: -3px;
  border-radius: 10px;
}

.owner-cargo-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 380px));
  gap: 22px;
  align-items: start;
}

.owner-cargo-empty {
  width: 100%;
  min-height: 180px;
  grid-column: 1 / -1;
  border: 1px solid #dbe3f3;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(17, 27, 61, 0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  color: #6b7897;
}

.owner-cargo-empty h3 {
  margin: 0;
  color: #6b7897;
  font-size: 24px;
  font-weight: 800;
}

.owner-cargo-empty p {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
}

/* чтобы кнопка Додати вантаж была как на макете */
.owner-add-cargo-btn,
.owner-cargo-header .btn-primary {
  min-width: 188px;
  height: 56px;
  border-radius: 22px;
  font-size: 17px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* адаптив */
@media (max-width: 900px) {
  .owner-cargo-tabs {
    margin-top: 18px;
  }

  .owner-cargo-tab {
    padding: 0 20px;
    font-size: 14px;
  }

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

  .owner-add-cargo-btn,
  .owner-cargo-header .btn-primary {
    width: 100%;
    min-width: 0;
    height: 50px;
  }
}

@media (max-width: 600px) {
  .owner-cargo-tabs {
    margin-left: -18px;
    margin-right: -18px;
    padding-left: 18px;
    padding-right: 18px;
  }

  .owner-cargo-tab {
    min-height: 42px;
    padding: 0 16px;
  }

  .owner-cargo-tab.active::after {
    left: 12px;
    right: 12px;
  }
}
/* =============================== */
/* Cargo Offers Page               */
/* =============================== */

.cargo-offers-page {
  min-height: calc(100vh - 64px - 200px);
  padding: 42px 0 76px;
  background:
          radial-gradient(circle at 76% 6%, rgba(47, 91, 234, 0.08), transparent 28%),
          #f5f7fc;
  color: #111b3d;
}

.cargo-offers-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.cargo-offers-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 26px;
}

.cargo-offers-back {
  margin: 0 0 12px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #2f5bea;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
}

.cargo-offers-header h1 {
  margin: 0;
  color: #111b3d;
  font-size: 34px;
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.cargo-offers-header p {
  max-width: 660px;
  margin: 10px 0 0;
  color: #6b7a99;
  font-size: 16px;
  line-height: 1.45;
  font-weight: 600;
}

.cargo-offers-primary-btn,
.cargo-offers-outline-btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.cargo-offers-primary-btn {
  border: 1px solid #2f5bea;
  background: #2f5bea;
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(47, 91, 234, 0.22);
}

.cargo-offers-primary-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(47, 91, 234, 0.28);
}

.cargo-offers-outline-btn {
  border: 1px solid #2f5bea;
  background: #ffffff;
  color: #2f5bea;
}

.cargo-offers-outline-btn:hover {
  background: rgba(47, 91, 234, 0.06);
}

.cargo-offers-edit-btn {
  flex: 0 0 auto;
  margin-top: 28px;
}

.cargo-offers-loading {
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7a99;
  font-size: 18px;
  font-weight: 800;
}

.cargo-offers-summary {
  overflow: hidden;
  border: 1px solid #dfe7f6;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(17, 27, 61, 0.1);
}

.cargo-offers-summary-main {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 28px 22px;
  border-bottom: 1px solid #e7edf8;
}

.cargo-offers-route h2 {
  margin: 0;
  color: #111b3d;
  font-size: 25px;
  line-height: 1.2;
  font-weight: 900;
}

.cargo-offers-route h2 span,
.cargo-offers-route p span {
  color: #2f5bea;
}

.cargo-offers-route p {
  margin: 10px 0 0;
  color: #6b7a99;
  font-size: 15px;
  line-height: 1.45;
  font-weight: 700;
}

.cargo-offers-status-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

.cargo-offers-status,
.cargo-offers-count {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.cargo-offers-status {
  padding: 0 14px;
  background: #2f5bea;
  color: #ffffff;
}

.cargo-offers-count {
  padding: 0 12px;
  background: #eef4ff;
  color: #2f5bea;
}

.cargo-offers-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: #e7edf8;
}

.cargo-offers-kpi {
  min-height: 88px;
  padding: 18px 22px;
  background: #ffffff;
}

.cargo-offers-kpi span {
  display: block;
  margin-bottom: 6px;
  color: #6b7a99;
  font-size: 13px;
  font-weight: 800;
}

.cargo-offers-kpi strong {
  display: block;
  color: #111b3d;
  font-size: 16px;
  line-height: 1.25;
  font-weight: 900;
}

.cargo-offers-empty {
  min-height: 360px;
  margin-top: 26px;
  padding: 54px 28px;
  border: 1px solid #dfe7f6;
  border-radius: 24px;
  background:
          radial-gradient(circle at 50% 0%, rgba(47, 91, 234, 0.08), transparent 34%),
          #ffffff;
  box-shadow: 0 18px 44px rgba(17, 27, 61, 0.08);
  text-align: center;
}

.cargo-offers-empty-icon {
  width: 74px;
  height: 74px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 22px;
  background: #eef4ff;
  font-size: 34px;
}

.cargo-offers-empty h2 {
  margin: 0;
  color: #6b7a99;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 900;
}

.cargo-offers-empty p {
  max-width: 560px;
  margin: 14px auto 0;
  color: #6b7a99;
  font-size: 16px;
  line-height: 1.55;
  font-weight: 600;
}

.cargo-offers-empty-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.cargo-offers-list-section {
  margin-top: 30px;
}

.cargo-offers-list-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.cargo-offers-list-head h2 {
  margin: 0;
  color: #111b3d;
  font-size: 24px;
  font-weight: 900;
}

.cargo-offers-list-head span {
  min-width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #2f5bea;
  color: #ffffff;
  font-size: 14px;
  font-weight: 900;
}

.cargo-offers-list {
  display: grid;
  gap: 18px;
}

.cargo-offer-card {
  padding: 24px;
  border: 1px solid #dfe7f6;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(17, 27, 61, 0.08);
}

.cargo-offer-card-top {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.cargo-offer-carrier {
  display: flex;
  align-items: center;
  gap: 14px;
}

.cargo-offer-avatar {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 18px;
  background: #b8ecff;
  color: #111b3d;
  font-size: 15px;
  font-weight: 900;
}

.cargo-offer-carrier h3 {
  margin: 0;
  color: #111b3d;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 900;
}

.cargo-offer-carrier p {
  margin: 5px 0 0;
  color: #6b7a99;
  font-size: 14px;
  font-weight: 700;
}

.cargo-offer-badge {
  height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.cargo-offer-badge.is-warning {
  background: #fff4d9;
  color: #a66b00;
}

.cargo-offer-badge.is-success {
  background: #e7f8ee;
  color: #147a3f;
}

.cargo-offer-badge.is-danger {
  background: #ffe9ec;
  color: #d92535;
}

.cargo-offer-body {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 22px;
  padding-top: 20px;
  border-top: 1px solid #e7edf8;
}

.cargo-offer-price {
  padding: 18px;
  border-radius: 18px;
  background: #eef4ff;
}

.cargo-offer-price span,
.cargo-offer-meta span,
.cargo-offer-comment span {
  display: block;
  margin-bottom: 6px;
  color: #6b7a99;
  font-size: 13px;
  font-weight: 800;
}

.cargo-offer-price strong {
  display: block;
  color: #111b3d;
  font-size: 24px;
  line-height: 1.1;
  font-weight: 900;
}

.cargo-offer-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.cargo-offer-meta strong {
  color: #111b3d;
  font-size: 15px;
  line-height: 1.25;
  font-weight: 900;
}

.cargo-offer-comment {
  grid-column: 1 / -1;
  margin-top: 4px;
  padding: 16px 18px;
  border-radius: 16px;
  background: #f8faff;
}

.cargo-offer-comment p {
  margin: 0;
  color: #253254;
  font-size: 15px;
  line-height: 1.45;
  font-weight: 600;
}

.cargo-offer-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid #e7edf8;
}

/* Tablet */
@media (max-width: 1023px) {
  .cargo-offers-page {
    padding: 34px 0 58px;
  }

  .cargo-offers-header {
    flex-direction: column;
    align-items: stretch;
  }

  .cargo-offers-edit-btn {
    width: fit-content;
    margin-top: 0;
  }

  .cargo-offers-summary-main {
    flex-direction: column;
  }

  .cargo-offers-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cargo-offer-body {
    grid-template-columns: 1fr;
  }

  .cargo-offer-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Mobile */
@media (max-width: 767px) {
  .cargo-offers-shell {
    width: min(100% - 24px, 1120px);
  }

  .cargo-offers-header h1 {
    font-size: 28px;
  }

  .cargo-offers-header p {
    font-size: 14px;
  }

  .cargo-offers-summary-main {
    padding: 22px 18px;
  }

  .cargo-offers-route h2 {
    font-size: 22px;
  }

  .cargo-offers-summary-grid {
    grid-template-columns: 1fr;
  }

  .cargo-offers-kpi {
    min-height: auto;
    padding: 16px 18px;
  }

  .cargo-offers-empty {
    min-height: 300px;
    padding: 40px 18px;
  }

  .cargo-offers-empty h2 {
    font-size: 24px;
  }

  .cargo-offers-empty p {
    font-size: 14px;
  }

  .cargo-offer-card {
    padding: 18px;
  }

  .cargo-offer-card-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .cargo-offer-meta {
    grid-template-columns: 1fr;
  }

  .cargo-offer-actions {
    flex-direction: column-reverse;
  }

  .cargo-offer-actions .cargo-offers-primary-btn,
  .cargo-offer-actions .cargo-offers-outline-btn,
  .cargo-offers-empty-actions .cargo-offers-primary-btn,
  .cargo-offers-empty-actions .cargo-offers-outline-btn {
    width: 100%;
  }
}/* Fix deliveries header button alignment */
.sf-deliveries-shell {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

.sf-deliveries-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 24px;
  margin-bottom: 18px;
}

.sf-deliveries-header > div {
  min-width: 0;
  max-width: 760px;
}

.sf-deliveries-header .sf-deliveries-primary-btn {
  min-width: 150px;
  height: 52px;
  padding: 0 24px;
  margin-top: 0;
  justify-self: end;
}

/* чтобы текст под заголовком не ломался так рано */
.sf-deliveries-header p {
  max-width: 720px;
}

/* немного красивее расстояние до карточек */
.sf-deliveries-stats {
  margin-top: 20px;
}

/* tablet/mobile */
@media (max-width: 1023px) {
  .sf-deliveries-header {
    grid-template-columns: 1fr;
  }

  .sf-deliveries-header .sf-deliveries-primary-btn {
    justify-self: start;
  }
}

@media (max-width: 767px) {
  .sf-deliveries-shell {
    width: min(100% - 24px, 1120px);
  }

  .sf-deliveries-header .sf-deliveries-primary-btn {
    width: 100%;
    min-width: 0;
  }
}/* =============================== */
/* SmartFreight Deliveries Page    */
/* =============================== */

/* =============================== */
/* SmartFreight Deliveries Page    */
/* =============================== */

.sf-deliveries-page {
  min-height: calc(100vh - 64px - 200px);
  padding: 42px 0 76px;
  background: #f5f7fc;
  color: #111b3d;
}

.sf-deliveries-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.sf-deliveries-header {
  display: block;
  margin-bottom: 26px;
}

.sf-deliveries-header h1 {
  margin: 0 0 8px;
  color: #111b3d;
  font-size: 40px;
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.sf-deliveries-header p {
  max-width: 720px;
  margin: 0;
  color: #6b7a99;
  font-size: 17px;
  line-height: 1.42;
  font-weight: 800;
}

.sf-deliveries-primary-btn,
.sf-deliveries-outline-btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  text-decoration: none;
  transition:
          transform 0.18s ease,
          box-shadow 0.18s ease,
          background 0.18s ease,
          border-color 0.18s ease;
}

.sf-deliveries-primary-btn {
  border: 1px solid #2f5bea;
  background: #2f5bea;
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(47, 91, 234, 0.22);
}

.sf-deliveries-primary-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(47, 91, 234, 0.28);
}

.sf-deliveries-outline-btn {
  border: 1px solid #2f5bea;
  background: #ffffff;
  color: #2f5bea;
}

.sf-deliveries-outline-btn:hover {
  background: rgba(47, 91, 234, 0.06);
}

.sf-deliveries-loading {
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7a99;
  font-size: 18px;
  font-weight: 900;
}

/* Tabs */

.sf-deliveries-tabs {
  display: flex;
  gap: 8px;
  margin: 0 0 26px;
  padding: 8px;
  border: 1px solid #dfe7f6;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 12px 26px rgba(17, 27, 61, 0.06);
  overflow-x: auto;
}

.sf-deliveries-tab {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 16px;
  border: 0;
  border-radius: 13px;
  background: transparent;
  color: #6b7a99;
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
  cursor: pointer;
  transition:
          background 0.18s ease,
          color 0.18s ease,
          transform 0.18s ease;
}

.sf-deliveries-tab:hover {
  background: rgba(47, 91, 234, 0.06);
  color: #2f5bea;
}

.sf-deliveries-tab b {
  min-width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #eef4ff;
  color: #2f5bea;
  font-size: 12px;
  font-weight: 900;
}

.sf-deliveries-tab.is-active {
  background: #2f5bea;
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(47, 91, 234, 0.22);
}

.sf-deliveries-tab.is-active b {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

/* List */

.sf-deliveries-list {
  display: grid;
  gap: 18px;
}

/* Deal card */

.sf-delivery-card {
  padding: 24px;
  border: 1px solid #dfe7f6;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(17, 27, 61, 0.09);
}

.sf-delivery-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 22px;
  margin-bottom: 22px;
}

.sf-delivery-card-top h3 {
  margin: 0;
  color: #111b3d;
  font-size: 25px;
  line-height: 1.2;
  font-weight: 900;
}

.sf-delivery-card-top h3 span,
.sf-delivery-card-top p span {
  color: #2f5bea;
}

.sf-delivery-card-top p {
  margin: 9px 0 0;
  color: #6b7a99;
  font-size: 15px;
  line-height: 1.45;
  font-weight: 700;
}

.sf-delivery-status {
  height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.sf-delivery-status.is-info {
  background: #eef4ff;
  color: #2f5bea;
}

.sf-delivery-status.is-warning {
  background: #fff4d9;
  color: #a66b00;
}

.sf-delivery-status.is-success {
  background: #e7f8ee;
  color: #147a3f;
}

.sf-delivery-status.is-danger {
  background: #ffe9ec;
  color: #d92535;
}

/* Progress */

.sf-delivery-progress {
  padding: 18px;
  border-radius: 18px;
  background: #f8faff;
  margin-bottom: 22px;
}

.sf-delivery-progress-line {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.sf-delivery-progress-line span {
  height: 8px;
  border-radius: 999px;
  background: #dfe7f6;
}

.sf-delivery-progress-line span.is-done {
  background: #2f5bea;
}

.sf-delivery-progress-labels {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 9px;
}

.sf-delivery-progress-labels span {
  color: #6b7a99;
  font-size: 12px;
  font-weight: 800;
}

/* Details grid */

.sf-delivery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid #e7edf8;
  border-radius: 18px;
  background: #e7edf8;
  margin-bottom: 22px;
}

.sf-delivery-info {
  min-height: 82px;
  padding: 16px 18px;
  background: #ffffff;
}

.sf-delivery-info span {
  display: block;
  margin-bottom: 6px;
  color: #6b7a99;
  font-size: 13px;
  font-weight: 800;
}

.sf-delivery-info strong {
  display: block;
  color: #111b3d;
  font-size: 15px;
  line-height: 1.25;
  font-weight: 900;
}

/* Bottom */

.sf-delivery-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding-top: 20px;
  border-top: 1px solid #e7edf8;
}

.sf-delivery-counterparty {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.sf-delivery-avatar {
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: #b8ecff;
  color: #111b3d;
  font-size: 15px;
  font-weight: 900;
}

.sf-delivery-counterparty span,
.sf-delivery-price span {
  display: block;
  color: #6b7a99;
  font-size: 13px;
  font-weight: 800;
}

.sf-delivery-counterparty strong {
  display: block;
  margin-top: 3px;
  color: #111b3d;
  font-size: 16px;
  font-weight: 900;
}

.sf-delivery-counterparty p {
  margin: 4px 0 0;
  color: #6b7a99;
  font-size: 13px;
  font-weight: 700;
}

.sf-delivery-price {
  text-align: right;
  flex: 0 0 auto;
}

.sf-delivery-price strong {
  display: block;
  margin-top: 4px;
  color: #111b3d;
  font-size: 24px;
  line-height: 1.1;
  font-weight: 900;
}

.sf-delivery-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 22px;
}

/* Empty state */

.sf-deliveries-empty {
  min-height: 430px;
  padding: 56px 28px;
  border: 1px solid #dfe7f6;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(17, 27, 61, 0.08);
  text-align: center;
}

.sf-deliveries-empty-icon {
  width: 78px;
  height: 78px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 24px;
  background: #eef4ff;
  font-size: 36px;
}

.sf-deliveries-empty h2 {
  margin: 0;
  color: #6b7a99;
  font-size: 30px;
  line-height: 1.18;
  font-weight: 900;
}

.sf-deliveries-empty p {
  max-width: 600px;
  margin: 14px auto 0;
  color: #6b7a99;
  font-size: 16px;
  line-height: 1.55;
  font-weight: 700;
}

.sf-deliveries-empty .sf-deliveries-primary-btn {
  width: auto;
  min-width: 150px;
  margin-top: 26px;
}

.sf-deliveries-empty-hint {
  max-width: 620px;
  margin: 32px auto 0;
  padding: 18px 20px;
  border: 1px dashed #b8c8e8;
  border-radius: 18px;
  background: #f8faff;
  text-align: left;
}

.sf-deliveries-empty-hint span {
  display: block;
  color: #2f5bea;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.sf-deliveries-empty-hint p {
  margin: 7px 0 0;
  color: #6b7a99;
  font-size: 14px;
  line-height: 1.45;
}

/* Tablet */

@media (max-width: 1023px) {
  .sf-deliveries-page {
    padding: 34px 0 58px;
  }

  .sf-delivery-card-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .sf-delivery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sf-delivery-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .sf-delivery-price {
    text-align: left;
  }
}

/* Mobile */

@media (max-width: 767px) {
  .sf-deliveries-page {
    padding: 30px 0 56px;
  }

  .sf-deliveries-shell {
    width: min(100% - 24px, 1120px);
  }

  .sf-deliveries-header h1 {
    font-size: 32px;
  }

  .sf-deliveries-header p {
    font-size: 14px;
  }

  .sf-deliveries-tabs {
    border-radius: 16px;
  }

  .sf-delivery-card {
    padding: 18px;
    border-radius: 22px;
  }

  .sf-delivery-card-top h3 {
    font-size: 22px;
  }

  .sf-delivery-grid {
    grid-template-columns: 1fr;
  }

  .sf-delivery-progress-labels span {
    font-size: 10px;
  }

  .sf-delivery-actions {
    flex-direction: column-reverse;
  }

  .sf-delivery-actions .sf-deliveries-primary-btn,
  .sf-delivery-actions .sf-deliveries-outline-btn,
  .sf-deliveries-empty .sf-deliveries-primary-btn {
    width: 100%;
  }

  .sf-deliveries-empty {
    min-height: 360px;
    padding: 42px 18px;
  }

  .sf-deliveries-empty h2 {
    font-size: 25px;
  }

  .sf-deliveries-empty p {
    font-size: 14px;
  }
}
/* =============================== */
/* SmartFreight Carrier Offers     */
/* =============================== */

.sf-carrier-offers-page {
  min-height: calc(100vh - 64px - 200px);
  padding: 42px 0 76px;
  background: #f5f7fc;
  color: #111b3d;
}

.sf-carrier-offers-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.sf-carrier-offers-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 26px;
}

.sf-carrier-offers-header h1 {
  margin: 0 0 8px;
  color: #111b3d;
  font-size: 40px;
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.sf-carrier-offers-header p {
  max-width: 720px;
  margin: 0;
  color: #6b7a99;
  font-size: 17px;
  line-height: 1.42;
  font-weight: 800;
}

.sf-carrier-offers-loading {
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7a99;
  font-size: 18px;
  font-weight: 900;
}

.sf-carrier-offers-primary-btn,
.sf-carrier-offers-outline-btn,
.sf-carrier-offers-danger-btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  text-decoration: none;
  transition:
          transform 0.18s ease,
          box-shadow 0.18s ease,
          background 0.18s ease,
          border-color 0.18s ease;
}

.sf-carrier-offers-primary-btn {
  border: 1px solid #2f5bea;
  background: #2f5bea;
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(47, 91, 234, 0.22);
}

.sf-carrier-offers-primary-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(47, 91, 234, 0.28);
}

.sf-carrier-offers-outline-btn {
  border: 1px solid #2f5bea;
  background: #ffffff;
  color: #2f5bea;
}

.sf-carrier-offers-outline-btn:hover {
  background: rgba(47, 91, 234, 0.06);
}

.sf-carrier-offers-danger-btn {
  border: 1px solid #ef4444;
  background: #ef4444;
  color: #ffffff;
}

.sf-carrier-offers-danger-btn:hover {
  background: #dc2626;
  border-color: #dc2626;
}

/* Tabs */

.sf-carrier-offers-tabs {
  display: flex;
  gap: 8px;
  margin: 0 0 26px;
  padding: 8px;
  border: 1px solid #dfe7f6;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 12px 26px rgba(17, 27, 61, 0.06);
  overflow-x: auto;
}

.sf-carrier-offers-tab {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 16px;
  border: 0;
  border-radius: 13px;
  background: transparent;
  color: #6b7a99;
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
  cursor: pointer;
  transition:
          background 0.18s ease,
          color 0.18s ease,
          transform 0.18s ease;
}

.sf-carrier-offers-tab:hover {
  background: rgba(47, 91, 234, 0.06);
  color: #2f5bea;
}

.sf-carrier-offers-tab b {
  min-width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #eef4ff;
  color: #2f5bea;
  font-size: 12px;
  font-weight: 900;
}

.sf-carrier-offers-tab.is-active {
  background: #2f5bea;
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(47, 91, 234, 0.22);
}

.sf-carrier-offers-tab.is-active b {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

/* List */

.sf-carrier-offers-list {
  display: grid;
  gap: 18px;
}

/* Offer card */

.sf-carrier-offer-card {
  padding: 24px;
  border: 1px solid #dfe7f6;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(17, 27, 61, 0.09);
}

.sf-carrier-offer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 22px;
  margin-bottom: 22px;
}

.sf-carrier-offer-top h3 {
  margin: 0;
  color: #111b3d;
  font-size: 25px;
  line-height: 1.2;
  font-weight: 900;
}

.sf-carrier-offer-top h3 span,
.sf-carrier-offer-top p span {
  color: #2f5bea;
}

.sf-carrier-offer-top p {
  margin: 9px 0 0;
  color: #6b7a99;
  font-size: 15px;
  line-height: 1.45;
  font-weight: 700;
}

.sf-carrier-offer-status {
  height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.sf-carrier-offer-status.is-warning {
  background: #fff4d9;
  color: #a66b00;
}

.sf-carrier-offer-status.is-success {
  background: #e7f8ee;
  color: #147a3f;
}

.sf-carrier-offer-status.is-danger {
  background: #ffe9ec;
  color: #d92535;
}

.sf-carrier-offer-status.is-muted {
  background: #eef2f8;
  color: #6b7a99;
}

.sf-carrier-offer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid #e7edf8;
  border-radius: 18px;
  background: #e7edf8;
  margin-bottom: 18px;
}

.sf-carrier-offer-info {
  min-height: 82px;
  padding: 16px 18px;
  background: #ffffff;
}

.sf-carrier-offer-info span {
  display: block;
  margin-bottom: 6px;
  color: #6b7a99;
  font-size: 13px;
  font-weight: 800;
}

.sf-carrier-offer-info strong {
  display: block;
  color: #111b3d;
  font-size: 15px;
  line-height: 1.25;
  font-weight: 900;
}

.sf-carrier-offer-price-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.sf-carrier-offer-price-row > div {
  min-height: 78px;
  padding: 14px 16px;
  border: 1px solid #e7edf8;
  border-radius: 18px;
  background: #f8faff;
}

.sf-carrier-offer-price-row span {
  display: block;
  margin-bottom: 7px;
  color: #6b7a99;
  font-size: 13px;
  font-weight: 800;
}

.sf-carrier-offer-price-row strong {
  display: block;
  color: #111b3d;
  font-size: 17px;
  line-height: 1.2;
  font-weight: 900;
}

.sf-carrier-offer-comment {
  padding: 16px 18px;
  border: 1px dashed #b8c8e8;
  border-radius: 18px;
  background: #f8faff;
  margin-bottom: 18px;
}

.sf-carrier-offer-comment span {
  display: block;
  margin-bottom: 6px;
  color: #2f5bea;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.sf-carrier-offer-comment p {
  margin: 0;
  color: #445372;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 700;
}

.sf-carrier-offer-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid #e7edf8;
}

/* Empty */

.sf-carrier-offers-empty {
  min-height: 430px;
  padding: 56px 28px;
  border: 1px solid #dfe7f6;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(17, 27, 61, 0.08);
  text-align: center;
}

.sf-carrier-offers-empty-icon {
  width: 78px;
  height: 78px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 24px;
  background: #eef4ff;
  font-size: 36px;
}

.sf-carrier-offers-empty h2 {
  margin: 0;
  color: #6b7a99;
  font-size: 30px;
  line-height: 1.18;
  font-weight: 900;
}

.sf-carrier-offers-empty p {
  max-width: 600px;
  margin: 14px auto 0;
  color: #6b7a99;
  font-size: 16px;
  line-height: 1.55;
  font-weight: 700;
}

.sf-carrier-offers-empty .sf-carrier-offers-primary-btn {
  width: auto;
  min-width: 150px;
  margin-top: 26px;
}

/* Tablet */

@media (max-width: 1023px) {
  .sf-carrier-offers-page {
    padding: 34px 0 58px;
  }

  .sf-carrier-offers-header {
    flex-direction: column;
    align-items: stretch;
  }

  .sf-carrier-offers-header .sf-carrier-offers-primary-btn {
    width: fit-content;
  }

  .sf-carrier-offer-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .sf-carrier-offer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sf-carrier-offer-price-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Mobile */

@media (max-width: 767px) {
  .sf-carrier-offers-page {
    padding: 30px 0 56px;
  }

  .sf-carrier-offers-shell {
    width: min(100% - 24px, 1120px);
  }

  .sf-carrier-offers-header h1 {
    font-size: 32px;
  }

  .sf-carrier-offers-header p {
    font-size: 14px;
  }

  .sf-carrier-offers-header .sf-carrier-offers-primary-btn {
    width: 100%;
  }

  .sf-carrier-offers-tabs {
    border-radius: 16px;
  }

  .sf-carrier-offer-card {
    padding: 18px;
    border-radius: 22px;
  }

  .sf-carrier-offer-top h3 {
    font-size: 22px;
  }

  .sf-carrier-offer-grid,
  .sf-carrier-offer-price-row {
    grid-template-columns: 1fr;
  }

  .sf-carrier-offer-actions {
    flex-direction: column;
  }

  .sf-carrier-offer-actions .sf-carrier-offers-outline-btn,
  .sf-carrier-offer-actions .sf-carrier-offers-danger-btn,
  .sf-carrier-offers-empty .sf-carrier-offers-primary-btn {
    width: 100%;
  }

  .sf-carrier-offers-empty {
    min-height: 360px;
    padding: 42px 18px;
  }

  .sf-carrier-offers-empty h2 {
    font-size: 25px;
  }

  .sf-carrier-offers-empty p {
    font-size: 14px;
  }
}
/* =============================== */
/* SmartFreight Chats Page         */
/* =============================== */

.sf-chats-page {
  min-height: calc(100vh - 64px - 200px);
  padding: 42px 0 76px;
  background: #f5f7fc;
  color: #111b3d;
}

.sf-chats-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.sf-chats-loading,
.sf-chats-error {
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7a99;
  font-size: 18px;
  font-weight: 900;
}

.sf-chat-layout {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 22px;
  min-height: 690px;
}

.sf-chat-sidebar,
.sf-chat-window {
  background: #ffffff;
  border: 1px solid #dfe7f6;
  border-radius: 24px;
  box-shadow: 0 18px 44px rgba(17, 27, 61, 0.08);
  overflow: hidden;
}

.sf-chat-sidebar {
  display: flex;
  flex-direction: column;
}

.sf-chat-sidebar-head {
  padding: 26px 24px 18px;
  border-bottom: 1px solid #e7edf8;
}

.sf-chat-sidebar-head h1 {
  margin: 0;
  color: #111b3d;
  font-size: 28px;
  line-height: 1.1;
  font-weight: 900;
}

.sf-chat-sidebar-head p {
  margin: 8px 0 0;
  color: #6b7a99;
  font-size: 14px;
  font-weight: 800;
}

.sf-chat-search {
  padding: 14px 16px;
  border-bottom: 1px solid #e7edf8;
}

.sf-chat-search input {
  width: 100%;
  height: 46px;
  padding: 0 16px;
  border: 1px solid #dfe7f6;
  border-radius: 14px;
  background: #ffffff;
  color: #111b3d;
  font-size: 14px;
  font-weight: 700;
  outline: none;
  box-sizing: border-box;
}

.sf-chat-search input:focus {
  border-color: #2f5bea;
  box-shadow: 0 0 0 3px rgba(47, 91, 234, 0.1);
}

.sf-chat-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
}

.sf-chat-list-item {
  width: 100%;
  min-height: 96px;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 12px;
  align-items: center;
  padding: 14px 12px;
  border: 0;
  border-radius: 18px;
  background: transparent;
  color: #111b3d;
  text-align: left;
  cursor: pointer;
  transition: background 0.18s ease, box-shadow 0.18s ease;
}

.sf-chat-list-item:hover {
  background: #f5f7fc;
}

.sf-chat-list-item.is-active {
  background: #eef4ff;
  box-shadow: inset 4px 0 0 #2f5bea;
}

.sf-chat-list-avatar,
.sf-chat-window-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #2f5bea;
  color: #ffffff;
  font-weight: 900;
  flex: 0 0 auto;
}

.sf-chat-list-avatar {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  font-size: 15px;
}

.sf-chat-list-main {
  min-width: 0;
}

.sf-chat-list-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}

.sf-chat-list-top strong {
  min-width: 0;
  color: #111b3d;
  font-size: 15px;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sf-chat-list-top span {
  color: #6b7a99;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.sf-chat-list-subtitle {
  margin: 0 0 4px;
  color: #2f5bea;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sf-chat-list-last {
  margin: 0;
  color: #6b7a99;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sf-chat-list-empty {
  padding: 32px 16px;
  color: #6b7a99;
  text-align: center;
  font-weight: 800;
}

.sf-chat-window {
  min-width: 0;
}

.sf-chat-window-inner {
  height: 690px;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.sf-chat-window-head {
  min-height: 106px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
  border-bottom: 1px solid #e7edf8;
  background: #ffffff;
  box-sizing: border-box;
}

.sf-chat-window-user {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 16px;
}

.sf-chat-window-avatar {
  width: 62px;
  height: 62px;
  border-radius: 18px;
  font-size: 18px;
}

.sf-chat-window-user h2 {
  margin: 0;
  color: #111b3d;
  font-size: 26px;
  line-height: 1.1;
  font-weight: 900;
}

.sf-chat-window-user p {
  margin: 6px 0 0;
  color: #6b7a99;
  font-size: 14px;
  font-weight: 800;
}

.sf-chat-window-user small {
  display: block;
  margin-top: 4px;
  color: #8a97b3;
  font-size: 12px;
  font-weight: 700;
}

.sf-chat-complain-btn {
  min-height: 42px;
  padding: 0 20px;
  border: 1px solid #2f5bea;
  border-radius: 14px;
  background: #ffffff;
  color: #2f5bea;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}

.sf-chat-messages {
  min-height: 0;
  padding: 26px 22px;
  overflow-y: auto;
  background:
          radial-gradient(circle at 80% 0%, rgba(47, 91, 234, 0.08), transparent 26%),
          #f8faff;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sf-chat-message-row {
  width: 100%;
  display: flex;
}

.sf-chat-message-row.is-mine {
  justify-content: flex-end;
}

.sf-chat-message-row.is-other {
  justify-content: flex-start;
}

.sf-chat-message-bubble {
  width: fit-content;
  min-width: 72px;
  max-width: 58%;
  padding: 12px 15px 9px;
  border-radius: 18px;
  box-sizing: border-box;
  word-break: break-word;
}

.sf-chat-message-row.is-mine .sf-chat-message-bubble {
  margin-left: auto;
  margin-right: 0;
  background: #2f5bea;
  color: #ffffff;
  border: 1px solid #2f5bea;
  border-bottom-right-radius: 7px;
  box-shadow: 0 12px 26px rgba(47, 91, 234, 0.24);
}

.sf-chat-message-row.is-other .sf-chat-message-bubble {
  margin-left: 0;
  margin-right: auto;
  background: #ffffff;
  color: #111b3d;
  border: 1px solid #dfe7f6;
  border-bottom-left-radius: 7px;
  box-shadow: 0 10px 22px rgba(17, 27, 61, 0.06);
}

.sf-chat-message-bubble p {
  margin: 0;
  font-size: 15px;
  line-height: 1.4;
  font-weight: 800;
}

.sf-chat-message-bubble span {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  line-height: 1;
  font-weight: 900;
  text-align: right;
  opacity: 0.72;
}

.sf-chat-empty-messages,
.sf-chat-no-selected {
  height: 100%;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #6b7a99;
}

.sf-chat-empty-messages h2,
.sf-chat-no-selected h2 {
  margin: 0;
  color: #6b7a99;
  font-size: 28px;
  font-weight: 900;
}

.sf-chat-empty-messages p,
.sf-chat-no-selected p {
  margin: 10px 0 0;
  color: #6b7a99;
  font-size: 15px;
  font-weight: 700;
}

.sf-chat-form {
  display: grid;
  grid-template-columns: 1fr 140px;
  gap: 10px;
  padding: 14px;
  border-top: 1px solid #e7edf8;
  background: #ffffff;
}

.sf-chat-form input {
  width: 100%;
  height: 50px;
  padding: 0 16px;
  border: 1px solid #dfe7f6;
  border-radius: 14px;
  background: #ffffff;
  color: #111b3d;
  font-size: 15px;
  font-weight: 800;
  outline: none;
  box-sizing: border-box;
}

.sf-chat-form input:focus {
  border-color: #2f5bea;
  box-shadow: 0 0 0 3px rgba(47, 91, 234, 0.1);
}

.sf-chat-send-btn {
  min-height: 50px;
  border: 1px solid #2f5bea;
  border-radius: 14px;
  background: #2f5bea;
  color: #ffffff;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(47, 91, 234, 0.22);
}

.sf-chat-send-btn:disabled {
  opacity: 0.72;
  cursor: not-allowed;
}

@media (max-width: 1023px) {
  .sf-chat-layout {
    grid-template-columns: 1fr;
  }

  .sf-chat-sidebar {
    min-height: 320px;
  }

  .sf-chat-window-inner {
    height: 620px;
  }
}

@media (max-width: 767px) {
  .sf-chats-page {
    padding: 24px 0 52px;
  }

  .sf-chats-shell {
    width: min(100% - 24px, 1120px);
  }

  .sf-chat-window-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .sf-chat-complain-btn {
    width: 100%;
  }

  .sf-chat-window-user h2 {
    font-size: 22px;
  }

  .sf-chat-message-bubble {
    max-width: 82%;
  }

  .sf-chat-form {
    grid-template-columns: 1fr;
  }
}
.sf-deliveries-danger-btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid #ef4444;
  border-radius: 14px;
  background: #ffffff;
  color: #ef4444;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.sf-deliveries-danger-btn:hover {
  background: #fff1f2;
  transform: translateY(-1px);
}

.sf-deliveries-danger-btn:disabled,
.sf-deliveries-primary-btn:disabled,
.sf-deliveries-outline-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.sf-delivery-status-control {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.sf-delivery-status-select {
  min-height: 44px;
  min-width: 220px;
  padding: 0 42px 0 16px;
  border: 1px solid #dfe7f6;
  border-radius: 14px;
  background: #ffffff;
  color: #111b3d;
  font-size: 15px;
  font-weight: 800;
  outline: none;
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.sf-delivery-status-select:focus {
  border-color: #2f5bea;
  box-shadow: 0 0 0 4px rgba(47, 91, 234, 0.12);
}

.sf-deliveries-danger-btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid #ef4444;
  border-radius: 14px;
  background: #ffffff;
  color: #ef4444;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.sf-deliveries-danger-btn:hover {
  background: #fff1f2;
  transform: translateY(-1px);
}

.sf-deliveries-danger-btn:disabled,
.sf-deliveries-primary-btn:disabled,
.sf-deliveries-outline-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

@media (max-width: 767px) {
  .sf-delivery-status-control {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .sf-delivery-status-select,
  .sf-delivery-status-control .sf-deliveries-primary-btn {
    width: 100%;
  }
}
/* =============================== */
/* SmartFreight Cargo Detail Page  */
/* Reference-style redesign        */
/* =============================== */

.sf-cargo-detail-page {
  min-height: calc(100vh - 64px - 200px);
  padding: 54px 0 82px;
  background:
          radial-gradient(circle at 50% 0%, rgba(47, 91, 234, 0.08), transparent 32%),
          #f5f7fc;
  color: #111b3d;
}

.sf-cargo-detail-shell {
  width: min(1320px, calc(100% - 32px));
  margin: 0 auto;
}

.sf-cargo-detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 28px;
  align-items: start;
}

.sf-cargo-detail-hero-main,
.sf-cargo-detail-contact-card,
.sf-cargo-detail-map-card,
.sf-cargo-detail-state {
  border: 1px solid #dfe7f6;
  border-radius: 26px;
  background: #ffffff;
  box-shadow: 0 24px 54px rgba(17, 27, 61, 0.09);
}

.sf-cargo-detail-hero-main {
  padding: 34px 42px 32px;
}

.sf-cargo-detail-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.sf-cargo-detail-title-row h1 {
  margin: 0;
  color: #111b3d;
  font-size: 34px;
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.sf-cargo-detail-title-row h1 span {
  color: #2f5bea;
  margin: 0 8px;
}

.sf-cargo-detail-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  color: #6b7a99;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 700;
}

.sf-cargo-detail-meta a {
  color: #2f5bea;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 900;
}

.sf-cargo-detail-top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.sf-cargo-detail-icon-btn {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #2f5bea;
  border-radius: 14px;
  background: #ffffff;
  color: #2f5bea;
  font-size: 20px;
  font-weight: 900;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.sf-cargo-detail-icon-btn:hover {
  background: #eef4ff;
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(47, 91, 234, 0.14);
}

.sf-cargo-detail-divider {
  height: 1px;
  margin: 30px 0;
  background: #dfe7f6;
}

.sf-cargo-detail-block h2,
.sf-cargo-detail-contact-card h2 {
  margin: 0 0 22px;
  color: #111b3d;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: -0.025em;
}

.sf-cargo-detail-param-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px 34px;
}

.sf-cargo-detail-param {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.sf-cargo-detail-param-icon {
  width: 25px;
  height: 25px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #2f5bea;
  font-size: 18px;
  line-height: 1;
}

.sf-cargo-detail-param p {
  margin: 0;
  color: #253254;
  font-size: 15px;
  line-height: 1.3;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.sf-cargo-detail-route-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 34px;
  position: relative;
}

.sf-cargo-detail-route-grid::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: #dfe7f6;
}

.sf-cargo-detail-route-item {
  min-width: 0;
}

.sf-cargo-detail-route-item h3 {
  margin: 0 0 12px;
  color: #111b3d;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 900;
}

.sf-cargo-detail-route-item strong {
  display: block;
  margin-bottom: 10px;
  color: #111b3d;
  font-size: 16px;
  line-height: 1.4;
  font-weight: 800;
}

.sf-cargo-detail-route-item p {
  max-width: 360px;
  margin: 0 0 4px;
  color: #253254;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 600;
}

.sf-cargo-detail-description {
  margin: 0;
  color: #253254;
  font-size: 15px;
  line-height: 1.65;
  font-weight: 600;
}

.sf-cargo-detail-side {
  display: grid;
  gap: 22px;
  position: sticky;
  top: 88px;
}

.sf-cargo-detail-map-card {
  height: 224px;
  overflow: hidden;
}

.sf-cargo-detail-map-surface {
  position: relative;
  width: 100%;
  height: 100%;
  background:
          radial-gradient(circle at 20% 26%, rgba(47, 91, 234, 0.12), transparent 10%),
          radial-gradient(circle at 82% 70%, rgba(47, 91, 234, 0.13), transparent 10%),
          linear-gradient(135deg, #dff7e8 0%, #d8f1ec 34%, #eaf7df 64%, #d9f0e7 100%);
}

.sf-cargo-detail-map-surface::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
          linear-gradient(20deg, transparent 0 30%, rgba(255,255,255,0.35) 30% 31%, transparent 31% 100%),
          linear-gradient(110deg, transparent 0 42%, rgba(255,255,255,0.38) 42% 43%, transparent 43% 100%),
          linear-gradient(160deg, transparent 0 54%, rgba(255,255,255,0.35) 54% 55%, transparent 55% 100%);
  opacity: 0.8;
}

.sf-cargo-detail-map-route {
  position: absolute;
  left: 74px;
  top: 70px;
  width: 245px;
  height: 0;
  border-top: 6px solid #2f5bea;
  border-radius: 999px;
  transform: rotate(35deg);
  transform-origin: left center;
  z-index: 2;
}

.sf-cargo-detail-map-route::before {
  content: "";
  position: absolute;
  inset: -6px 0 0;
  border-top: 6px dashed rgba(255, 255, 255, 0.9);
  border-radius: 999px;
}

.sf-cargo-detail-map-dot {
  position: absolute;
  z-index: 3;
  width: 18px;
  height: 18px;
  border: 4px solid #111b3d;
  border-radius: 999px;
  background: #111b3d;
  box-shadow: 0 10px 20px rgba(17, 27, 61, 0.22);
}

.sf-cargo-detail-map-dot.is-start {
  left: 60px;
  top: 58px;
}

.sf-cargo-detail-map-dot.is-end {
  right: 56px;
  bottom: 44px;
}

.sf-cargo-detail-map-label {
  position: absolute;
  z-index: 4;
  max-width: 130px;
  padding: 5px 8px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.86);
  color: #111b3d;
  font-size: 11px;
  line-height: 1.15;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(17, 27, 61, 0.12);
}

.sf-cargo-detail-map-label.is-start {
  left: 34px;
  top: 28px;
}

.sf-cargo-detail-map-label.is-end {
  right: 28px;
  bottom: 18px;
}

.sf-cargo-detail-contact-card {
  padding: 26px;
}

.sf-cargo-detail-company {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
}

.sf-cargo-detail-company-avatar {
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: #b8ecff;
  color: #111b3d;
  font-size: 16px;
  font-weight: 900;
}

.sf-cargo-detail-company h3 {
  margin: 0;
  color: #111b3d;
  font-size: 19px;
  line-height: 1.25;
  font-weight: 900;
}

.sf-cargo-detail-company p,
.sf-cargo-detail-company-line {
  margin: 7px 0 0;
  color: #253254;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 600;
}

.sf-cargo-detail-contact-list {
  display: grid;
  gap: 9px;
  margin-top: 16px;
}

.sf-cargo-detail-contact-list p {
  margin: 0;
  color: #111b3d;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 700;
}

.sf-cargo-detail-contact-list span {
  color: #6b7a99;
  font-weight: 900;
}

.sf-cargo-detail-contact-list a {
  color: #2f5bea;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 800;
}

.sf-cargo-detail-rating-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 20px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #f8faff;
}

.sf-cargo-detail-rating-row strong {
  color: #111b3d;
  font-size: 22px;
  line-height: 1;
  font-weight: 900;
}

.sf-cargo-detail-stars {
  display: flex;
  align-items: center;
  gap: 2px;
  color: #c7d2e8;
  font-size: 20px;
  line-height: 1;
}

.sf-cargo-detail-stars span.is-filled {
  color: #f5b301;
}

.sf-cargo-detail-price-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px;
  align-items: end;
  gap: 18px;
  margin-top: 22px;
}

.sf-cargo-detail-price-row strong {
  display: block;
  color: #111b3d;
  font-size: 30px;
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -0.035em;
}

.sf-cargo-detail-price-row p {
  margin: 7px 0 0;
  color: #6b7a99;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 700;
}

.sf-cargo-detail-primary-btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid #2f5bea;
  border-radius: 14px;
  background: #2f5bea;
  color: #ffffff;
  font-size: 15px;
  line-height: 1;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 16px 30px rgba(47, 91, 234, 0.24);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.sf-cargo-detail-primary-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 36px rgba(47, 91, 234, 0.3);
}

.sf-cargo-detail-primary-btn.is-disabled,
.sf-cargo-detail-primary-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.sf-cargo-detail-state {
  min-height: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 40px;
  text-align: center;
}

.sf-cargo-detail-state h2 {
  margin: 0;
  color: #111b3d;
  font-size: 28px;
  font-weight: 900;
}

.sf-cargo-detail-state p {
  margin: 0;
  color: #6b7a99;
  font-size: 15px;
  font-weight: 700;
}

.sf-cargo-offer-modal-form {
  display: grid;
  gap: 16px;
}

.sf-cargo-offer-modal-form label {
  display: grid;
  gap: 7px;
}

.sf-cargo-offer-modal-form label span {
  color: #111b3d;
  font-size: 14px;
  font-weight: 900;
}

.sf-cargo-offer-modal-form input,
.sf-cargo-offer-modal-form select,
.sf-cargo-offer-modal-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid #dfe7f6;
  border-radius: 14px;
  background: #ffffff;
  color: #111b3d;
  font-size: 14px;
  font-weight: 700;
  outline: none;
}

.sf-cargo-offer-modal-form textarea {
  min-height: 92px;
  padding: 13px 14px;
  resize: vertical;
}

/* Tablet */
@media (max-width: 1100px) {
  .sf-cargo-detail-hero {
    grid-template-columns: 1fr;
  }

  .sf-cargo-detail-side {
    position: static;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .sf-cargo-detail-map-card {
    height: auto;
    min-height: 280px;
  }
}

/* Tablet small */
@media (max-width: 900px) {
  .sf-cargo-detail-page {
    padding: 36px 0 64px;
  }

  .sf-cargo-detail-hero-main {
    padding: 28px;
  }

  .sf-cargo-detail-param-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sf-cargo-detail-route-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .sf-cargo-detail-route-grid::before {
    display: none;
  }

  .sf-cargo-detail-side {
    grid-template-columns: 1fr;
  }

  .sf-cargo-detail-map-card {
    min-height: 230px;
  }
}

/* Mobile */
@media (max-width: 640px) {
  .sf-cargo-detail-shell {
    width: min(100% - 24px, 1320px);
  }

  .sf-cargo-detail-title-row {
    flex-direction: column;
  }

  .sf-cargo-detail-title-row h1 {
    font-size: 28px;
  }

  .sf-cargo-detail-top-actions {
    width: 100%;
  }

  .sf-cargo-detail-icon-btn {
    flex: 1;
  }

  .sf-cargo-detail-hero-main,
  .sf-cargo-detail-contact-card {
    padding: 20px;
    border-radius: 22px;
  }

  .sf-cargo-detail-param-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .sf-cargo-detail-divider {
    margin: 24px 0;
  }

  .sf-cargo-detail-block h2,
  .sf-cargo-detail-contact-card h2 {
    font-size: 21px;
  }

  .sf-cargo-detail-price-row {
    grid-template-columns: 1fr;
  }

  .sf-cargo-detail-price-row .sf-cargo-detail-primary-btn {
    width: 100%;
  }

  .sf-cargo-detail-map-card {
    min-height: 200px;
    border-radius: 22px;
  }

  .sf-cargo-detail-map-route {
    left: 52px;
    top: 76px;
    width: 190px;
  }

  .sf-cargo-detail-map-dot.is-start {
    left: 42px;
    top: 64px;
  }

  .sf-cargo-detail-map-dot.is-end {
    right: 42px;
    bottom: 46px;
  }

  .sf-cargo-detail-map-label {
    display: none;
  }
}

.sf-cargo-detail-map-card {
  height: 224px;
  overflow: hidden;
  border: 1px solid #dfe7f6;
  border-radius: 26px;
  background: #ffffff;
  box-shadow: 0 24px 54px rgba(17, 27, 61, 0.09);
}

.sf-cargo-detail-map-frame {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}
/* =========================================================
   Cargo filters sidebar overlap fix
   ========================================================= */

.sf-filters-sidebar {
  min-width: 0;
}

.sf-filter-form {
  display: block;
  width: 100%;
  padding: 24px 24px 26px;
  box-sizing: border-box;
  overflow: visible;
}

.sf-filter-title {
  margin: 0 0 26px;
}

.sf-filter-group {
  position: relative;
  display: block;
  margin: 0 0 28px;
  padding: 0;
}

.sf-filter-group:last-child {
  margin-bottom: 0;
}

.sf-filter-group h3 {
  margin: 0 0 14px;
  line-height: 1.25;
}

.sf-input-label {
  display: block;
  margin: 0 0 8px;
  line-height: 1.25;
}

.sf-filter-input-wrap {
  position: relative;
  width: 100%;
  margin: 0 0 14px;
}

.sf-filter-input-wrap input,
.sf-filter-select,
.sf-two-cols input {
  width: 100%;
  min-height: 44px;
  box-sizing: border-box;
}

/* Главная причина наезда — кнопка swap между полями */
.sf-route-swap {
  position: static !important;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin: -4px auto 12px;
  transform: none !important;
  z-index: 1;
}

/* Для даты swap лучше вообще не держать поверх инпутов */
.sf-date-swap {
  opacity: .45;
  pointer-events: none;
}

/* Цена / вес / объем */
.sf-two-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  align-items: start;
}

.sf-volume-row {
  margin-top: 10px;
}

.sf-range-fake {
  position: relative;
  margin: 18px 4px 0;
}

/* Чекбоксы: чтобы длинные названия не налезали друг на друга */
.sf-check-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 14px;
  align-items: start;
}

.sf-filter-check {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  min-height: 22px;
  line-height: 1.2;
}

.sf-filter-check input {
  grid-column: 1;
  margin: 2px 0 0;
}

.sf-filter-check span {
  grid-column: 1;
  grid-row: 1;
}

.sf-filter-check b {
  grid-column: 2;
  min-width: 0;
  white-space: normal;
  word-break: normal;
  overflow-wrap: anywhere;
  line-height: 1.2;
  font-size: 14px;
}

/* Кнопки снизу фильтра */
.sf-filter-actions {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.sf-apply-btn,
.sf-clear-btn {
  width: 100%;
  min-height: 46px;
  box-sizing: border-box;
}

/* На узком сайдбаре лучше чекбоксы в одну колонку */
@media (max-width: 1280px) {
  .sf-filter-form {
    padding: 22px 18px 24px;
  }

  .sf-check-grid {
    grid-template-columns: 1fr;
  }
}

.sf-sort-select {
  appearance: none;
  -webkit-appearance: none;
  padding-left: 28px;
  padding-right: 64px;
  background-image: url("data:image/svg+xml,%3Csvg width='14' height='8' viewBox='0 0 14 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L7 7L13 1' stroke='%23101A3D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 26px center;
  background-size: 14px 8px;
}
html,
body {
  height: auto;
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
}

#app,
.app,
.main-layout {
  min-height: auto;
  overflow: visible;
}

.sf-home-page,
.home-page,
.sf-home-hero,
.home-hero {
  min-height: auto;
  overflow: visible;
}

.home-search-swap,
.sf-home-swap,
.sf-route-swap {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 50%;
  border: 1px solid #dce6f7;
  background: #fff;
  color: #315ee9;
  font-size: 18px;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(49, 94, 233, .12);
  cursor: pointer;
  z-index: 3;
}

.home-search-swap:hover,
.sf-home-swap:hover,
.sf-route-swap:hover {
  border-color: #315ee9;
  background: #eef4ff;
  transform: rotate(180deg);
}

.sf-home-search .sf-route-swap,
.sf-home-search .sf-home-swap,
.home-search .sf-route-swap,
.home-search .home-search-swap {
  align-self: center;
  margin: 0 -19px;
}

.owner-cargo-page,
.sf-owner-cargo-page,
.owner-cargo-shell,
.sf-owner-cargo-shell {
  padding-bottom: 72px;
}
html,
body {
  min-height: 100%;
}

body {
  min-height: 100vh;
}

#app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.sf-main,
main {
  flex: 1 0 auto;
}

footer,
.sf-footer,
.app-footer {
  flex-shrink: 0;
}

@media (max-width: 760px) {
  .owner-cargo-page > * button,
  .sf-owner-cargo-page > * button {
    max-height: 44px;
  }

  .owner-cargo-page a[href="#/owner/cargo/new"],
  .sf-owner-cargo-page a[href="#/owner/cargo/new"] {
    min-height: 44px;
    height: 44px;
    padding: 0 22px;
    border-radius: 18px;
    font-size: 15px;
    width: auto;
    max-width: 220px;
  }
}

/* ============================= */
/* Company profile mobile fix */
/* ============================= */

@media (max-width: 768px) {
  .sf-company-public-page {
    padding: 22px 12px 52px !important;
    background: #f4f7ff;
  }

  .sf-company-public-shell {
    width: 100% !important;
    max-width: 100% !important;
    gap: 16px !important;
  }

  .sf-company-public-hero {
    display: block !important;
    padding: 18px !important;
    border-radius: 22px !important;
  }

  .sf-company-public-avatar {
    width: 72px !important;
    height: 72px !important;
    border-radius: 18px !important;
    font-size: 22px !important;
    margin-bottom: 14px !important;
  }

  .sf-company-public-main {
    min-width: 0 !important;
  }

  .sf-company-public-title-row {
    display: block !important;
    margin-bottom: 16px !important;
  }

  .sf-company-public-title-row h1 {
    font-size: 24px !important;
    line-height: 1.15 !important;
    margin: 0 0 8px !important;
    word-break: break-word;
  }

  .sf-company-public-badge {
    font-size: 11px !important;
    padding: 5px 9px !important;
    max-width: 100%;
  }

  .sf-company-public-rating {
    min-width: 0 !important;
    text-align: left !important;
    margin-top: 16px !important;
    padding-top: 14px !important;
    border-top: 1px solid #e3ebfa;
  }

  .sf-company-public-rating strong {
    font-size: 34px !important;
  }

  .sf-company-stars {
    font-size: 20px !important;
    gap: 2px !important;
    margin-top: 4px !important;
  }

  .sf-company-public-rating span {
    font-size: 13px !important;
    margin-top: 5px !important;
  }

  .sf-company-public-info-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    margin-bottom: 16px !important;
  }

  .sf-company-public-info-grid div {
    min-height: auto !important;
    padding: 12px !important;
    border-radius: 14px !important;
  }

  .sf-company-public-info-grid span {
    font-size: 12px !important;
    margin-bottom: 5px !important;
  }

  .sf-company-public-info-grid a,
  .sf-company-public-info-grid p {
    font-size: 13px !important;
    line-height: 1.35 !important;
    word-break: break-word;
  }

  .sf-company-public-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .sf-company-primary-btn,
  .sf-company-outline-btn {
    width: 100% !important;
    min-height: 46px !important;
    border-radius: 14px !important;
    padding: 0 14px !important;
    font-size: 14px !important;
  }

  .sf-company-public-stats {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
    padding: 12px !important;
    border-radius: 20px !important;
  }

  .sf-company-public-stat {
    padding: 12px !important;
    border-radius: 14px !important;
  }

  .sf-company-public-stat strong {
    font-size: 24px !important;
  }

  .sf-company-public-stat span {
    font-size: 12px !important;
    line-height: 1.25 !important;
  }

  .sf-company-public-section {
    padding: 18px !important;
    border-radius: 22px !important;
  }

  .sf-company-public-section h2 {
    font-size: 24px !important;
    margin-bottom: 14px !important;
  }

  .sf-company-review-card {
    padding: 14px !important;
    border-radius: 16px !important;
  }

  .sf-company-review-head {
    display: block !important;
    margin-bottom: 12px !important;
  }

  .sf-company-review-author {
    margin-bottom: 10px !important;
  }

  .sf-company-review-avatar {
    width: 42px !important;
    height: 42px !important;
    border-radius: 13px !important;
    font-size: 14px !important;
  }

  .sf-company-review-author strong {
    font-size: 14px !important;
  }

  .sf-company-review-author span {
    font-size: 12px !important;
  }

  .sf-company-review-card p {
    font-size: 14px !important;
    line-height: 1.45 !important;
    word-break: break-word;
  }

  .sf-company-empty {
    padding: 34px 12px !important;
  }

  .sf-company-empty h3 {
    font-size: 22px !important;
  }

  .sf-company-empty p {
    font-size: 14px !important;
  }
}

@media (max-width: 430px) {
  .sf-company-public-page {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  .sf-company-public-hero,
  .sf-company-public-section,
  .sf-company-public-stats {
    border-radius: 18px !important;
  }

  .sf-company-public-stats {
    grid-template-columns: 1fr !important;
  }

  .sf-company-public-title-row h1 {
    font-size: 22px !important;
  }

  .sf-company-public-rating strong {
    font-size: 30px !important;
  }
}

/* Final mobile fix: center route swap button */
@media (max-width: 768px) {
  .hero-search,
  .home-search,
  .search-bar,
  .search-form,
  .cargo-search-form {
    position: relative !important;
  }

  .hero-search .swap-btn,
  .hero-search .swap-button,
  .hero-search .route-swap-btn,
  .home-search .swap-btn,
  .home-search .swap-button,
  .home-search .route-swap-btn,
  .search-bar .swap-btn,
  .search-bar .swap-button,
  .search-bar .route-swap-btn,
  .search-form .swap-btn,
  .search-form .swap-button,
  .search-form .route-swap-btn,
  .cargo-search-form .swap-btn,
  .cargo-search-form .swap-button,
  .cargo-search-form .route-swap-btn,
  .hero-search [class*="swap"],
  .home-search [class*="swap"],
  .search-bar [class*="swap"],
  .search-form [class*="swap"],
  .cargo-search-form [class*="swap"] {
    position: absolute !important;
    left: 50% !important;
    top: 58px !important;
    transform: translate(-50%, -50%) !important;

    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    min-height: 30px !important;
    max-width: 30px !important;
    max-height: 30px !important;

    padding: 0 !important;
    margin: 0 !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    border-radius: 50% !important;
    border: 1px solid #dce6f7 !important;
    background: #fff !important;
    color: #315ee9 !important;
    box-shadow: 0 8px 18px rgba(25, 54, 120, 0.14) !important;

    font-size: 16px !important;
    line-height: 1 !important;
    z-index: 20 !important;
  }
}
/* =========================================================
   Home security tabs icon fix
   Активная вкладка белая => иконка должна быть тёмной/синей
   ========================================================= */

.security-tab {
  color: #ffffff;
}

.security-tab .security-tab-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex: 0 0 28px;

  opacity: 1 !important;
  visibility: visible !important;

  filter: brightness(0) invert(1) !important;
}

.security-tab.is-active {
  background: #ffffff !important;
  color: #111b3d !important;
  border: 2px solid #ffffff !important;
  box-shadow: inset 0 0 0 2px #315ee9;
}

.security-tab.is-active .security-tab-icon {
  opacity: 1 !important;
  visibility: visible !important;

  filter: brightness(0) saturate(100%) invert(12%) sepia(36%) saturate(1535%) hue-rotate(204deg) brightness(89%) contrast(96%) !important;
}

.security-tab:not(.is-active) .security-tab-icon {
  filter: brightness(0) invert(1) !important;
}

/* Если где-то иконка слишком светлая из-за старого opacity */
.security-tab img {
  opacity: 1 !important;
}