﻿/* Фирменные цвета Mamarada / «Мама Рада» (согласованы с макетом home-main) */
:root {
  --primary-color  : #f97068;
  --primary-dark   : #e85a52;
  --primary-light  : #fb9a94;
  --secondary-color: #3d5a80;
  --success-color  : #a8d5ba;
  --danger-color   : #ef4444;
  --warning-color  : #f59e0b;
  --info-color     : #3d5a80;
  --light-color    : #f0f7fb;
  --dark-color     : #3d5a80;
  --gray-color     : #5a6c7d;
  --border-color   : #e8eef2;
}

:root {
  --primary-color  : #f97068;
  --primary-dark   : #e85a52;
  --primary-light  : #fb9a94;
  --secondary-color: #3d5a80;
  --success-color  : #a8d5ba;
  --danger-color   : #ef4444;
  --warning-color  : #f59e0b;
  --info-color     : #3d5a80;
  --light-color    : #f0f7fb;
  --dark-color     : #3d5a80;
  --gray-color     : #5a6c7d;
  --border-color   : #e8eef2;
}

/* Bootstrap 5: глобальные акценты как в макете */
html {
  --bs-primary         : #f97068;
  --bs-primary-rgb     : 249, 112, 104;
  --bs-link-color      : #3d5a80;
  --bs-link-hover-color: #f97068;
}

.btn-primary {
  --bs-btn-bg                 : #f97068;
  --bs-btn-border-color       : #f97068;
  --bs-btn-hover-bg           : #e85a52;
  --bs-btn-hover-border-color : #e85a52;
  --bs-btn-active-bg          : #e85a52;
  --bs-btn-active-border-color: #d94d46;
  --bs-btn-focus-shadow-rgb   : 249, 112, 104;
}

.btn-outline-primary {
  --bs-btn-color              : #3d5a80;
  --bs-btn-border-color       : #3d5a80;
  --bs-btn-hover-bg           : #f97068;
  --bs-btn-hover-border-color : #f97068;
  --bs-btn-hover-color        : #fff;
  --bs-btn-active-bg          : #e85a52;
  --bs-btn-active-border-color: #e85a52;
  --bs-btn-active-color       : #fff;
}

/* Основные стили */
main>.container,
main>.container-fluid {
  padding: 50px 0 20px;
}

.app-main--has-breadcrumbs > .container-fluid {
  padding-top: 0;
}

.footer {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color     : white;
  font-size : .9em;
  padding   : 40px 0 20px;
  margin-top: 60px;
}

.footer>.container,
.footer>.container-fluid {
  padding-right: 15px;
  padding-left : 15px;
}

.not-set {
  color     : #c55;
  font-style: italic;
}

/* add sorting icons to gridview sort links */
a.asc:after,
a.desc:after {
  content   : '';
  left      : 3px;
  display   : inline-block;
  width     : 0;
  height    : 0;
  border    : solid 5px transparent;
  margin    : 4px 4px 2px 4px;
  background: transparent;
}

a.asc:after {
  border-bottom   : solid 7px #212529;
  border-top-width: 0;
}

a.desc:after {
  border-top         : solid 7px #212529;
  border-bottom-width: 0;
}

.grid-view th,
.grid-view td:last-child {
  white-space: nowrap;
}

.grid-view .filters input,
.grid-view .filters select {
  min-width: 50px;
}

.hint-block {
  display   : block;
  margin-top: 5px;
  color     : #999;
}

.error-summary {
  color      : #a94442;
  background : #fdf7f7;
  border-left: 3px solid #eed3d7;
  padding    : 10px 20px;
  margin     : 0 0 15px 0;
}

/* align the logout "link" (button in form) of the navbar */
.navbar form>button.logout {
  padding-top: 7px;
  color      : rgba(255, 255, 255, 0.5);
}

@media(max-width:767px) {
  .navbar form>button.logout {
    display   : block;
    text-align: left;
    width     : 100%;
    padding   : 10px 0;
  }
}

.navbar form>button.logout:focus,
.navbar form>button.logout:hover {
  text-decoration: none;
  color          : rgba(255, 255, 255, 0.75);
}

.navbar form>button.logout:focus {
  outline: none;
}

/* style breadcrumb widget as in previous bootstrap versions */
.breadcrumb {
  background-color: var(--light-color);
  border-radius   : .5rem;
  padding         : .75rem 1rem;
  border          : 1px solid var(--border-color);
}

.breadcrumb-item>a {
  text-decoration: none;
  color          : var(--primary-color);
}

.breadcrumb-item>a:hover {
  color: var(--primary-dark);
}

/* Стили для шапки */
.header {
  border-bottom: 1px solid var(--border-color);
}

.nav-link:hover {
  background-color: var(--light-color) !important;
  color           : var(--primary-color) !important;
}

.nav-link.active {
  background-color: var(--primary-color) !important;
  color           : white !important;
}

/* Стили для кнопок */
.btn-primary {
  background-color: var(--primary-color);
  border-color    : var(--primary-color);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color    : var(--primary-dark);
}

.btn-outline-primary {
  color       : var(--primary-color);
  border-color: var(--primary-color);
}

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  border-color    : var(--primary-color);
}

/* Стили для карточек */
.card {
  border       : 1px solid var(--border-color);
  border-radius: 0.75rem;
  box-shadow   : 0 1px 3px rgba(0, 0, 0, 0.1);
  transition   : box-shadow 0.2s ease-in-out;
}

.card:hover {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.card-header {
  background-color: var(--light-color);
  border-bottom   : 1px solid var(--border-color);
  border-radius   : 0.75rem 0.75rem 0 0 !important;
}

/* Стили для форм */
.form-control::placeholder,
textarea.form-control::placeholder {
  color  : #455B81;
  opacity: 0.4;
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow  : 0 0 0 0.2rem rgba(99, 102, 241, 0.25);
}

.form-select:focus {
  border-color: var(--primary-color);
  box-shadow  : 0 0 0 0.2rem rgba(99, 102, 241, 0.25);
}

/* Стили для пагинации */
.pagination .page-link {
  color       : var(--primary-color);
  border-color: var(--border-color);
}

.pagination .page-item.active .page-link {
  background-color: var(--primary-color);
  border-color    : var(--primary-color);
}

/* Стили для бейджей */
.badge.bg-primary {
  background-color: var(--primary-color) !important;
}

.badge.bg-success {
  background-color: var(--success-color) !important;
}

.badge.bg-danger {
  background-color: var(--danger-color) !important;
}

.badge.bg-warning {
  background-color: var(--warning-color) !important;
}

/* Стили для текста */
.text-primary {
  color: var(--primary-color) !important;
}

.text-success {
  color: var(--success-color) !important;
}

.text-danger {
  color: var(--danger-color) !important;
}

.text-warning {
  color: var(--warning-color) !important;
}

/* Стили для футера */
.footer-nav {
  list-style: none;
  padding   : 0;
}

.footer-nav a {
  font-weight    : 500;
  font-size      : 16px;
  text-align     : center;
  color          : #e4eeff;
  text-decoration: none;
  transition     : color 0.2s;
}

.footer-nav a:hover {
  color: white;
}

/* Анимации */
@keyframes fadeIn {
  from {
    opacity  : 0;
    transform: translateY(20px);
  }

  to {
    opacity  : 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.5s ease-out;
}

/* Адаптивность */
@media (max-width: 768px) {
  .nav-list {
    flex-direction: column;
    gap           : 10px;
  }

  .header-contacts {
    flex-direction: column;
    gap           : 10px;
    align-items   : center !important;
  }

  .phone {
    display: none;
  }
}

@media (max-width: 1200px) {
  .nav-list .nav-item {
    margin: 0 0.25rem;
  }

  .nav-list .nav-link {
    padding  : 0.5rem 0.75rem !important;
    font-size: 0.9rem;
  }
}

@media (max-width: 992px) {
  .nav-list .nav-link {
    padding  : 0.25rem 0.5rem !important;
    font-size: 0.85rem;
  }
}

/* Карточка задания в списке /find-task (как услуга с изображением) */
.task-list-item__media {
  min-height: 180px;
  max-height: 260px;
}

.task-list-item__img {
  width     : 100%;
  height    : 100%;
  min-height: 180px;
  object-fit: cover;
}

.task-list-item__placeholder {
  min-height: 180px;
}

/* ============================================
   Карточка задания (/task/view) — scoped .task-view
   ============================================ */

.task-view {
  color: #455B81;
  background: transparent;
  line-height: 1.25;
  box-sizing: border-box;
}

.task-view *,
.task-view *::before,
.task-view *::after {
  box-sizing: border-box;
}

.task-view__container {
  padding-top: 0;
  padding-bottom: 0;
}

.task-view__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: start;
}

/* --- Основная карточка задания --- */
.task-view .task-details-card {
  background: #FFFFFF;
  border-radius: 20px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.task-view .task-overview__content,
.task-view .task-description-card,
.task-view .task-requirements,
.task-view .task-photos {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  margin: 0;
}

.task-view .task-overview__top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 16px;
}

.task-view .task-overview__published {
  order: -1;
  font-size: 10px;
  line-height: 12px;
  font-weight: 500;
  color: #455B81;
  opacity: 0.6;
}

.task-view .task-overview__id {
  font-size: 12px;
  line-height: 15px;
  font-weight: 700;
  color: #455B81;
}

.task-view .task-overview__title {
  margin: 0;
  font-size: 16px;
  line-height: 20px;
  font-weight: 700;
  color: #455B81;
  word-break: break-word;
}

.task-view .task-overview__details {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #E4EEFF;
}

.task-view .task-overview__detail {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.task-view .task-overview__label {
  font-size: 12px;
  line-height: 15px;
  font-weight: 700;
  color: #455B81;
}

.task-view .task-overview__value {
  font-size: 12px;
  line-height: 14px;
  font-weight: 500;
  color: #455B81;
  word-break: break-word;
}

.task-view .task-overview__map-link {
  color: #455B81;
  text-decoration: underline;
  margin-left: 6px;
}

.task-view .task-overview__schedule {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

.task-view .task-overview__schedule-group {
  min-width: 0;
}

.task-view .task-overview__schedule-label {
  margin-bottom: 10px;
  font-size: 10px;
  line-height: 12px;
  font-weight: 500;
  color: #455B81;
  opacity: 0.7;
}

.task-view .task-overview__schedule-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 40px;
  padding: 10px;
  border: 1px solid #E4EEFF;
  border-radius: 6px;
}

.task-view .task-overview__schedule-date,
.task-view .task-overview__schedule-time {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  font-size: 12px;
  line-height: 14px;
  font-weight: 500;
  color: #455B81;
}

.task-view .task-overview__schedule-date i,
.task-view .task-overview__schedule-time i {
  flex: 0 0 auto;
  font-size: 16px;
  color: #FF735A;
}

/* --- Описание --- */
.task-view .task-description-card {
  padding: 20px 0;
  border-top: 1px solid #E4EEFF;
  border-bottom: 1px solid #E4EEFF;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.task-view .task-section-title {
  margin: 0;
  font-size: 12px;
  line-height: 15px;
  font-weight: 700;
  color: #455B81;
}

.task-view .task-description-card__content {
  font-size: 12px;
  line-height: 14px;
  font-weight: 500;
  letter-spacing: 0.13px;
  color: #455B81;
  word-break: break-word;
}

.task-view .task-description-card__content p {
  margin: 0 0 10px;
}

.task-view .task-description-card__content p:last-child {
  margin-bottom: 0;
}

/* --- Требования --- */
.task-view .task-requirements {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.task-view .task-requirements__list {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 8px;
  max-width: 100%;
}

.task-view .task-requirement {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.task-view .task-requirement__box {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  border: 1.3px solid #455B81;
  border-radius: 3px;
  background: #FFFFFF;
}

.task-view .task-requirement__label {
  font-size: 12px;
  line-height: 14px;
  font-weight: 500;
  color: #455B81;
}

.task-view .task-requirements__text {
  font-size: 12px;
  line-height: 14px;
  color: #455B81;
}

/* --- Фото --- */
.task-view .task-photos {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.task-view .task-photos__grid {
  display: grid;
  grid-template-columns: repeat(4, calc((100% - 12px) / 4));
  gap: 4px;
}

.task-view .task-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(228, 238, 255, 0.6);
  border: 0;
}

.task-view .task-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.task-view .task-photo--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #455B81;
}

.task-view .task-photo--empty i {
  font-size: 18px;
  opacity: 0.6;
}

/* --- Extra actions --- */
.task-view .task-view__extra-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.task-view .task-view__extra-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 14px;
  border: 1px solid #E4EEFF;
  border-radius: 30px;
  background: #FFFFFF;
  color: #455B81;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}

.task-view .task-view__extra-btn:hover {
  border-color: #FF735A;
  color: #FF735A;
}

.task-view .task-view__extra-btn--danger {
  border-color: #ef4444;
  color: #ef4444;
}

/* --- Payment: в конце страницы на mobile --- */
.task-view .task-details-card {
  order: 1;
}

.task-view .task-customer-card {
  order: 2;
}

.task-view .task-warning-card {
  order: 3;
}

.task-view .task-payment-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  order: 4;
  width: 100%;
  background: #E4EEFF;
  border-radius: 20px;
  padding: 20px 16px;
}

.task-view .task-payment-card__title {
  margin: 0;
  font-size: 18px;
  line-height: 22px;
  font-weight: 700;
  color: #455B81;
}

.task-view .task-payment-card__methods {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.task-view .task-payment-card__method {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  line-height: 20px;
  color: #455B81;
}

.task-view .task-payment-card__barter-label,
.task-view .task-payment-card__price-label {
  font-size: 14px;
  line-height: 18px;
  font-weight: 700;
  color: #455B81;
}

.task-view .task-payment-card__barter-block,
.task-view .task-payment-card__price-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.task-view .task-payment-card__barter {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #E4EEFF;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 15px;
  line-height: 20px;
  color: #455B81;
  background: #FFFFFF;
}

.task-view .task-payment-card__barter::placeholder {
  color: #455B81;
  opacity: 0.5;
}

.task-view .task-payment-card__barter:focus {
  outline: none;
  border-color: #FF735A;
}

.task-view .task-payment-card__price {
  font-size: 20px;
  line-height: 24px;
  font-weight: 700;
  color: #455B81;
}

.task-view .task-payment-card__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 73px;
  background: #FF735A;
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.task-view .task-payment-card__button:hover {
  color: #FFFFFF;
  opacity: 0.92;
}

.task-view .task-payment-card__method input {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  margin: 0;
  flex: none;
  box-sizing: border-box;
  border: 1px solid #455B81;
  border-radius: 3px;
  background-color: transparent;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 10px 8px;
  cursor: pointer;
}

.task-view .task-payment-card__method {
  cursor: pointer;
}

.task-view .task-payment-card__method input:checked {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10' fill='none'%3E%3Cpath d='M1.2 5.2L4.4 8.3L10.8 1.5' stroke='%23455B81' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* --- Customer --- */
.task-view .task-customer-card {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 28px;
  background: #FFFFFF;
  border: 1px solid #E4EEFF;
  border-radius: 20px;
  padding: 16px;
  min-width: 0;
}

.task-view .task-customer-card__aside {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 60px;
}

.task-view .task-customer-card__avatar {
  flex: none;
  width: 60px;
}

.task-view .task-customer-card__avatar img,
.task-view .task-customer-card__avatar-placeholder {
  width: 60px;
  height: 60px;
  border-radius: 10px 10px 4px 10px;
  object-fit: cover;
}

.task-view .task-customer-card__avatar-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #E4EEFF;
  color: #455B81;
  font-size: 22px;
}

.task-view .task-customer-card__online {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  line-height: 12px;
  font-weight: 500;
  color: #9AA6B8;
  white-space: nowrap;
}

.task-view .task-customer-card__online.is-online {
  color: #2E9E5B;
}

.task-view .task-customer-card__online-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}

.task-view .task-customer-card__body {
  min-width: 0;
  flex: 1;
}

.task-view .task-customer-card__name {
  margin: 0 0 6px;
  font-size: 16px;
  line-height: 20px;
  font-weight: 700;
  color: #455B81;
  word-break: break-word;
}

.task-view .task-customer-card__verified {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  font-size: 10px;
  line-height: 12px;
  font-weight: 500;
  color: #FF735A;
}

.task-view .task-customer-card__verified i {
  font-size: 12px;
}

.task-view .task-customer-card__profile-link {
  display: inline-block;
  margin-bottom: 20px;
  color: #FF735A;
  font-size: 10px;
  line-height: 12px;
  font-weight: 500;
  text-decoration: none;
}

.task-view .task-customer-card__rating {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 13px;
}

.task-view .task-customer-card__stars {
  color: #FFC44D;
  font-size: 16px;
  letter-spacing: 1px;
  line-height: 1;
}

.task-view .task-customer-card__reviews {
  font-size: 10px;
  line-height: 12px;
  color: #455B81;
  opacity: 0.7;
}

.task-view .task-customer-card__meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px 16px;
  width: max-content;
  max-width: 100%;
}

.task-view .task-customer-card__meta-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.task-view .task-customer-card__meta-item {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 10px;
  line-height: 14px;
  font-weight: 500;
  color: #455B81;
}

.task-view .task-customer-card__meta-item span:last-child {
  min-width: 0;
  word-break: break-word;
}

.task-view .task-customer-card__meta-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 12px;
  height: 14px;
  margin-top: 0;
  color: #FF735A;
}

.task-view .task-customer-card__meta-icon svg {
  display: block;
  width: 12px;
  height: 12px;
}

.task-view .task-customer-card__meta-icon svg[viewBox="0 0 14 18"] {
  width: 10px;
  height: 13px;
}

/* --- Warning --- */
.task-view .task-warning-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: #E4EEFF;
  border-radius: 20px;
  padding: 16px;
  min-width: 0;
}

.task-view .task-warning-card__icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  color: #FF735A;
  line-height: 1;
}

.task-view .task-warning-card__icon svg {
  display: block;
  width: 16px;
  height: 16px;
}

.task-view .task-warning-card__body {
  min-width: 0;
}

.task-view .task-warning-card__title {
  margin-bottom: 16px;
  font-size: 12px;
  line-height: 15px;
  font-weight: 700;
  color: #455B81;
}

.task-view .task-warning-card__text {
  font-size: 12px;
  line-height: 14px;
  font-weight: 500;
  color: #455B81;
  opacity: 0.7;
  max-width: 100%;
}

/* --- Responses (owner) --- */
.task-view .task-responses {
  margin-top: 40px;
}

.task-view .task-responses__title {
  margin: 0 0 20px;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 700;
  color: #455B81;
}

.task-view .task-responses__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.task-view .task-response-card {
  background: #FFFFFF;
  border: 1px solid #E4EEFF;
  border-radius: 20px;
  padding: 16px;
}

.task-view .task-response-card__head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.task-view .task-response-card__name a {
  color: #455B81;
  font-weight: 700;
  text-decoration: none;
}

.task-view .task-response-card__rating,
.task-view .task-response-card__time,
.task-view .task-response-card__message {
  font-size: 14px;
  color: rgba(69, 91, 129, 0.75);
}

.task-view .task-response-card__payments,
.task-view .task-response-card__barter {
  margin-bottom: 8px;
  font-size: 14px;
  line-height: 18px;
  color: #455B81;
}

.task-view .task-response-card__price {
  margin-bottom: 8px;
  font-weight: 700;
  color: #FF735A;
}

.task-view .task-response-card__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
}

.task-view .task-response-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.task-view .task-response-card__status {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  background: #E4EEFF;
}

.task-view .task-responses__empty,
.task-view .similar-tasks__empty {
  margin: 0;
  color: rgba(69, 91, 129, 0.7);
}

/* --- Similar tasks --- */
.task-view .similar-tasks {
  margin-top: 40px;
  margin-bottom: 20px;
  background: transparent;
}

.task-view .similar-tasks__title {
  margin: 0 0 16px;
  font-size: 20px;
  line-height: 25px;
  font-weight: 700;
  color: #455B81;
}

.task-view .similar-tasks__track {
  display: flex;
  flex-wrap: nowrap;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.task-view .similar-tasks__track::-webkit-scrollbar {
  display: none;
}

.task-view .similar-tasks__slide {
  flex: 0 0 100%;
  width: 100%;
  max-width: 100%;
  scroll-snap-align: start;
}

.task-view .similar-task-card {
  min-height: 416px;
  height: 100%;
  background: #FFFFFF;
  border: 1px solid #E4EEFF;
  border-radius: 20px;
  padding: 16px;
}

.task-view .similar-task-card__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 14px;
}

.task-view .similar-task-card__title {
  margin: 0;
  font-size: 16px;
  line-height: 20px;
  font-weight: 700;
  min-width: 0;
}

.task-view .similar-task-card__title a {
  color: #455B81;
  text-decoration: none;
  word-break: break-word;
}

.task-view .similar-task-card__price {
  flex: 0 0 auto;
  font-size: 16px;
  line-height: 20px;
  font-weight: 700;
  color: #FF735A;
  white-space: nowrap;
}

.task-view .similar-task-card__text {
  margin-bottom: 16px;
  font-size: 12px;
  line-height: 14px;
  font-weight: 500;
  color: #455B81;
  word-break: break-word;
}

.task-view .similar-task-card__meta {
  display: grid;
  gap: 8px;
}

.task-view .similar-task-card__meta-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  line-height: 14px;
  color: #455B81;
}

.task-view .similar-task-card__meta-item i {
  flex: 0 0 auto;
  width: 18px;
  font-size: 16px;
  color: #FF735A;
  margin-top: 1px;
}

.default-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 30px; min-height: 44px;
  border: none; border-radius: 73px;
  font-weight: 500; font-size: 16px; line-height: 20px;
  text-decoration: none; cursor: pointer; transition: background .2s, color .2s, opacity .2s;
}
.default-btn--inline { display: inline-flex; }
.default-btn--accent { background: #FF735A; color: #FFFFFF; }
.default-btn--accent:hover { background: #ff5334; color: #FFFFFF; }
.default-btn--primary { background: #F8F9FA; color: #455B81; }
.default-btn--primary:hover { background: #eef1f4; }

@media (max-width: 480px) {
  .task-view .task-overview__schedule-date i,
  .task-view .task-overview__schedule-time i {
    font-size: 13px;
  }
}

/* ============================================
   Tablet 768–1199
   ============================================ */
@media (min-width: 768px) and (max-width: 1199px) {
  .task-view .task-details-card {
    padding: 24px;
    gap: 24px;
    border-radius: 20px;
  }

  .task-view .task-overview__top {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
  }

  .task-view .task-overview__published {
    order: 0;
    font-size: 14px;
    line-height: 16px;
  }

  .task-view .task-overview__id {
    font-size: 16px;
    line-height: 20px;
  }

  .task-view .task-overview__title {
    font-size: 20px;
    line-height: 25px;
    margin-bottom: 0;
  }

  .task-view .task-overview__details {
    gap: 18px;
    padding-top: 30px;
    margin-top: 30px;
  }

  .task-view .task-overview__detail {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 10px;
  }

  .task-view .task-overview__label,
  .task-view .task-overview__value {
    font-size: 16px;
    line-height: 20px;
  }

  .task-view .task-overview__label {
    font-weight: 700;
  }

  .task-view .task-overview__value {
    font-weight: 500;
  }

  .task-view .task-overview__schedule {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 30px;
  }

  .task-view .task-overview__schedule-group {
    flex: 1 1 280px;
    max-width: 345px;
  }

  .task-view .task-overview__schedule-label {
    font-size: 14px;
    line-height: 16px;
  }

  .task-view .task-overview__schedule-control {
    min-height: 56px;
    padding: 16px;
  }

  .task-view .task-overview__schedule-date,
  .task-view .task-overview__schedule-time {
    font-size: 16px;
    line-height: 20px;
  }

  .task-view .task-overview__schedule-date i,
  .task-view .task-overview__schedule-time i {
    font-size: 20px;
  }

  .task-view .task-description-card {
    padding: 30px 0;
    gap: 16px;
  }

  .task-view .task-section-title {
    font-size: 16px;
    line-height: 20px;
  }

  .task-view .task-description-card__content {
    font-size: 16px;
    line-height: 20px;
    letter-spacing: normal;
  }

  .task-view .task-requirements__list {
    flex-direction: row;
    flex-wrap: wrap;
    column-gap: 40px;
    row-gap: 16px;
    max-width: 738px;
  }

  .task-view .task-requirement__box {
    width: 20px;
    height: 20px;
  }

  .task-view .task-requirement__label {
    font-size: 16px;
    line-height: 20px;
  }

  .task-view .task-photos__grid {
    grid-template-columns: repeat(5, 110px);
    gap: 10px;
  }

  .task-view .task-photo {
    width: 110px;
    height: 110px;
    aspect-ratio: auto;
  }

  .task-view .task-photo--empty i {
    font-size: 22px;
  }

  .task-view .task-payment-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: min(368px, 100%);
    background: #E4EEFF;
    border-radius: 30px;
    padding: 30px 20px;
    order: 0;
  }

  .task-view .task-details-card,
  .task-view .task-customer-card,
  .task-view .task-warning-card {
    order: 0;
  }

  .task-view .task-payment-card__title {
    margin: 0;
    font-size: 20px;
    line-height: 25px;
    font-weight: 700;
    color: #455B81;
  }

  .task-view .task-payment-card__methods {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .task-view .task-payment-card__method {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 16px;
    line-height: 20px;
    color: #455B81;
  }

  .task-view .task-payment-card__barter-label {
    font-size: 16px;
    line-height: 20px;
    font-weight: 400;
    color: #455B81;
  }

  .task-view .task-payment-card__barter-block {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .task-view .task-payment-card__barter {
    width: 100%;
    min-height: 40px;
    padding: 10px 20px;
    border: 1px solid #E4EEFF;
    border-radius: 30px;
    background: #FFFFFF;
    font-size: 16px;
    line-height: 20px;
    color: #455B81;
    outline: none;
  }

  .task-view .task-payment-card__barter::placeholder {
    color: #455B81;
    opacity: 0.35;
  }

  .task-view .task-payment-card__barter:focus {
    border-color: #455B81;
  }

  .task-view .task-payment-card__price-block {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 4px;
  }

  .task-view .task-payment-card__price-label {
    font-size: 16px;
    line-height: 20px;
    font-weight: 500;
    color: #455B81;
  }

  .task-view .task-payment-card__price {
    font-size: 20px;
    line-height: 25px;
    font-weight: 700;
    color: #FF735A;
    word-break: break-word;
  }

  .task-view .task-payment-card__button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 49px;
    margin-top: 14px;
    padding: 12px 16px;
    border-radius: 30px;
    background: #FF735A;
    color: #FFFFFF;
    font-size: 20px;
    line-height: 25px;
    font-weight: 500;
    text-decoration: none;
  }

  .task-view .task-payment-card__button:hover {
    background: #FF5334;
    color: #FFFFFF;
  }

  .task-view .task-customer-card {
    border-radius: 30px;
    padding: 20px;
    gap: 30px;
    min-height: 241px;
    align-items: center;
  }

  .task-view .task-customer-card__aside {
    width: 150px;
    gap: 10px;
  }

  .task-view .task-customer-card__avatar {
    width: 150px;
  }

  .task-view .task-customer-card__avatar img,
  .task-view .task-customer-card__avatar-placeholder {
    width: 150px;
    height: 150px;
    border-radius: 22px 22px 4px 22px;
  }

  .task-view .task-customer-card__avatar-placeholder {
    font-size: 42px;
  }

  .task-view .task-customer-card__online {
    font-size: 14px;
    line-height: 16px;
  }

  .task-view .task-customer-card__online-dot {
    width: 8px;
    height: 8px;
  }

  .task-view .task-customer-card__name {
    font-size: 20px;
    line-height: 25px;
  }

  .task-view .task-customer-card__verified {
    font-size: 14px;
    line-height: 16px;
    margin-bottom: 8px;
  }

  .task-view .task-customer-card__verified i {
    font-size: 14px;
  }

  .task-view .task-customer-card__profile-link {
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 16px;
  }

  .task-view .task-customer-card__stars {
    font-size: 14px;
  }

  .task-view .task-customer-card__reviews {
    font-size: 14px;
    line-height: 16px;
  }

  .task-view .task-customer-card__rating {
    margin-bottom: 10px;
  }

  .task-view .task-customer-card__meta {
    grid-template-columns: auto auto;
    column-gap: 40px;
    row-gap: 10px;
    width: max-content;
    max-width: 100%;
  }

  .task-view .task-customer-card__meta-col {
    gap: 10px;
  }

  .task-view .task-customer-card__meta-item {
    font-size: 14px;
    line-height: 18px;
    gap: 8px;
  }

  .task-view .task-customer-card__meta-icon {
    width: 16px;
    height: 16px;
  }

  .task-view .task-customer-card__meta-icon svg {
    width: 16px;
    height: 16px;
  }

  .task-view .task-customer-card__meta-icon svg[viewBox="0 0 14 18"] {
    width: 14px;
    height: 18px;
  }

  .task-view .task-warning-card {
    border-radius: 30px;
    padding: 30px 20px;
    min-height: 132px;
  }

  .task-view .task-warning-card__icon {
    width: 20px;
    height: 20px;
  }

  .task-view .task-warning-card__icon svg {
    width: 20px;
    height: 20px;
  }

  .task-view .task-warning-card__title {
    font-size: 16px;
    line-height: 20px;
  }

  .task-view .task-warning-card__text {
    font-size: 14px;
    line-height: 16px;
    max-width: 604px;
  }

  .task-view .similar-tasks__title {
    margin-bottom: 30px;
    font-size: 30px;
    line-height: 38px;
  }

  .task-view .similar-tasks__track {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    overflow: visible;
    scroll-snap-type: none;
  }

  .task-view .similar-tasks__slide {
    flex: none;
    width: auto;
    max-width: none;
  }

  .task-view .similar-task-card {
    min-height: 450px;
    border-radius: 30px;
    padding: 30px 20px;
  }

  .task-view .similar-task-card__title,
  .task-view .similar-task-card__price {
    font-size: 20px;
    line-height: 25px;
  }

  .task-view .similar-task-card__text,
  .task-view .similar-task-card__meta-item {
    font-size: 16px;
    line-height: 20px;
  }

  .task-view .similar-task-card__meta-item i {
    width: 24px;
    font-size: 20px;
  }

  .task-view .task-responses__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ============================================
   Desktop >= 1200
   ============================================ */
@media (min-width: 1200px) {
  .task-view__layout {
    grid-template-columns: minmax(0, 1fr) 368px;
    column-gap: 20px;
    row-gap: 40px;
  }

  .task-view .task-details-card {
    grid-column: 1;
    grid-row: 1;
    padding: 30px;
    gap: 30px;
    border-radius: 20px;
  }

  .task-view .task-payment-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    grid-column: 2;
    grid-row: 1 / -1;
    width: 368px;
    background: #E4EEFF;
    border-radius: 30px;
    padding: 30px 20px;
    align-self: start;
    position: sticky;
    top: 20px;
    z-index: 2;
  }

  .task-view .task-customer-card {
    grid-column: 1;
    grid-row: 2;
    border-radius: 30px;
    padding: 20px;
    gap: 30px;
    min-height: 241px;
    align-items: center;
  }

  .task-view .task-warning-card {
    grid-column: 1;
    grid-row: 3;
    border-radius: 30px;
    padding: 30px 20px;
    min-height: 132px;
  }

  .task-view .task-overview__top {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
  }

  .task-view .task-overview__published {
    order: 0;
    font-size: 14px;
    line-height: 16px;
  }

  .task-view .task-overview__id {
    font-size: 16px;
    line-height: 20px;
  }

  .task-view .task-overview__title {
    font-size: 20px;
    line-height: 25px;
  }

  .task-view .task-overview__details {
    gap: 18px;
    padding-top: 30px;
    margin-top: 30px;
  }

  .task-view .task-overview__detail {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 10px;
  }

  .task-view .task-overview__label,
  .task-view .task-overview__value {
    font-size: 16px;
    line-height: 20px;
  }

  .task-view .task-overview__label {
    font-weight: 700;
  }

  .task-view .task-overview__value {
    font-weight: 500;
  }

  .task-view .task-overview__schedule {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 30px;
  }

  .task-view .task-overview__schedule-group {
    flex: 0 1 345px;
    width: 345px;
    max-width: 100%;
  }

  .task-view .task-overview__schedule-label {
    font-size: 14px;
    line-height: 16px;
  }

  .task-view .task-overview__schedule-control {
    min-height: 56px;
    padding: 16px;
  }

  .task-view .task-overview__schedule-date,
  .task-view .task-overview__schedule-time {
    font-size: 16px;
    line-height: 20px;
  }

  .task-view .task-overview__schedule-date i,
  .task-view .task-overview__schedule-time i {
    font-size: 20px;
  }

  .task-view .task-description-card {
    padding: 30px 0;
    gap: 16px;
  }

  .task-view .task-section-title {
    font-size: 16px;
    line-height: 20px;
  }

  .task-view .task-description-card__content {
    font-size: 16px;
    line-height: 20px;
    letter-spacing: normal;
  }

  .task-view .task-requirements__list {
    flex-direction: row;
    flex-wrap: wrap;
    column-gap: 40px;
    row-gap: 16px;
    max-width: 738px;
  }

  .task-view .task-requirement__box {
    width: 20px;
    height: 20px;
  }

  .task-view .task-requirement__label {
    font-size: 16px;
    line-height: 20px;
  }

  .task-view .task-photos__grid {
    grid-template-columns: repeat(5, 110px);
    gap: 10px;
  }

  .task-view .task-photo {
    width: 110px;
    height: 110px;
    aspect-ratio: auto;
  }

  .task-view .task-photo--empty i {
    font-size: 22px;
  }

  .task-view .task-payment-card__title {
    margin: 0;
    font-size: 20px;
    line-height: 25px;
    font-weight: 700;
    color: #455B81;
  }

  .task-view .task-payment-card__methods {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .task-view .task-payment-card__method {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 16px;
    line-height: 20px;
    color: #455B81;
  }

  .task-view .task-payment-card__barter-label {
    font-size: 16px;
    line-height: 20px;
    font-weight: 400;
    color: #455B81;
  }

  .task-view .task-payment-card__barter-block {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .task-view .task-payment-card__barter {
    width: 100%;
    min-height: 40px;
    padding: 10px 20px;
    border: 1px solid #E4EEFF;
    border-radius: 30px;
    background: #FFFFFF;
    font-size: 16px;
    line-height: 20px;
    color: #455B81;
    outline: none;
  }

  .task-view .task-payment-card__barter::placeholder {
    color: #455B81;
    opacity: 0.35;
  }

  .task-view .task-payment-card__barter:focus {
    border-color: #455B81;
  }

  .task-view .task-payment-card__price-block {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 4px;
  }

  .task-view .task-payment-card__price-label {
    font-size: 16px;
    line-height: 20px;
    font-weight: 500;
    color: #455B81;
  }

  .task-view .task-payment-card__price {
    font-size: 20px;
    line-height: 25px;
    font-weight: 700;
    color: #FF735A;
    word-break: break-word;
  }

  .task-view .task-payment-card__button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 49px;
    margin-top: 14px;
    padding: 12px 16px;
    border-radius: 30px;
    background: #FF735A;
    color: #FFFFFF;
    font-size: 20px;
    line-height: 25px;
    font-weight: 500;
    text-decoration: none;
  }

  .task-view .task-payment-card__button:hover {
    background: #FF5334;
    color: #FFFFFF;
  }

  .task-view .task-customer-card__aside {
    width: 150px;
    gap: 10px;
  }

  .task-view .task-customer-card__avatar {
    width: 150px;
  }

  .task-view .task-customer-card__avatar img,
  .task-view .task-customer-card__avatar-placeholder {
    width: 150px;
    height: 150px;
    border-radius: 22px 22px 4px 22px;
  }

  .task-view .task-customer-card__avatar-placeholder {
    font-size: 42px;
  }

  .task-view .task-customer-card__online {
    font-size: 14px;
    line-height: 16px;
  }

  .task-view .task-customer-card__online-dot {
    width: 8px;
    height: 8px;
  }

  .task-view .task-customer-card__name {
    font-size: 20px;
    line-height: 25px;
  }

  .task-view .task-customer-card__verified {
    font-size: 14px;
    line-height: 16px;
    margin-bottom: 8px;
  }

  .task-view .task-customer-card__verified i {
    font-size: 14px;
  }

  .task-view .task-customer-card__profile-link {
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 16px;
  }

  .task-view .task-customer-card__stars {
    font-size: 14px;
  }

  .task-view .task-customer-card__reviews {
    font-size: 14px;
    line-height: 16px;
  }

  .task-view .task-customer-card__rating {
    margin-bottom: 10px;
  }

  .task-view .task-customer-card__meta {
    grid-template-columns: auto auto;
    column-gap: 111px;
    row-gap: 10px;
    width: max-content;
    max-width: 100%;
  }

  .task-view .task-customer-card__meta-col {
    gap: 10px;
  }

  .task-view .task-customer-card__meta-item {
    font-size: 14px;
    line-height: 18px;
    gap: 8px;
  }

  .task-view .task-customer-card__meta-icon {
    width: 16px;
    height: 16px;
  }

  .task-view .task-customer-card__meta-icon svg {
    width: 16px;
    height: 16px;
  }

  .task-view .task-customer-card__meta-icon svg[viewBox="0 0 14 18"] {
    width: 14px;
    height: 18px;
  }

  .task-view .task-warning-card__icon {
    width: 20px;
    height: 20px;
  }

  .task-view .task-warning-card__icon svg {
    width: 20px;
    height: 20px;
  }

  .task-view .task-warning-card__title {
    font-size: 16px;
    line-height: 20px;
  }

  .task-view .task-warning-card__text {
    font-size: 14px;
    line-height: 16px;
    max-width: 604px;
  }

  .task-view .similar-tasks {
    margin-top: 40px;
  }

  .task-view .similar-tasks__title {
    margin-bottom: 30px;
    font-size: 30px;
    line-height: 38px;
  }

  .task-view .similar-tasks__track {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    overflow: visible;
    scroll-snap-type: none;
  }

  .task-view .similar-tasks__slide {
    flex: none;
    width: auto;
    max-width: none;
  }

  .task-view .similar-task-card {
    min-height: 450px;
    border-radius: 30px;
    padding: 30px 20px;
  }

  .task-view .similar-task-card__title,
  .task-view .similar-task-card__price {
    font-size: 20px;
    line-height: 25px;
  }

  .task-view .similar-task-card__text,
  .task-view .similar-task-card__meta-item {
    font-size: 16px;
    line-height: 20px;
  }

  .task-view .similar-task-card__meta-item i {
    width: 24px;
    font-size: 20px;
  }

  .task-view .task-responses__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Services page: keep light card styling without affecting task-view */
.services-view .service-header {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 30px;
  padding: 26px;
}

.services-view .service-actions .btn {
  border-radius: 999px;
}

.services-view .card {
  border-radius: 30px;
  box-shadow: none;
}
