/* ===== Service page (Услуги мастера) ===== */

/* --- "Вызов мастера" section --- */
.master-services {
  padding-top: 40px;
  padding-bottom: 40px;
  background-color: var(--color-gray-light);
}

.master-services__title {
  font-size: 28px;
  text-align: center;
  margin-bottom: 10px;
}

.master-services__title span {
  color: var(--color-orange-light);
}

.master-services__subtitle {
  text-align: center;
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-dark, #33302e);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Service table --- */
.service-table {
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 20px;
}

.service-table__header {
  display: flex;
  gap: 2px;
}

.service-table__header-name,
.service-table__header-price {
  background-color: var(--color-orange-light);
  color: #fff;
  font-family: "Magistral", sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.5;
  display: flex;
  align-items: center;
  padding: 20px 30px;
}

.service-table__header-name {
  flex: 1;
  border-radius: 16px 0 0 0;
}

.service-table__header-price {
  width: 140px;
  flex-shrink: 0;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  border-radius: 0 16px 0 0;
}

.service-table__header-price small {
  font-family: "Rubik", sans-serif;
  font-weight: 400;
  font-size: 12px;
}

.service-table__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.service-table__row {
  display: flex;
  gap: 2px;
  cursor: pointer;
}

.service-table__row:last-child .service-table__cell-name {
  border-radius: 0 0 0 16px;
}

.service-table__row:last-child .service-table__cell-price {
  border-radius: 0 0 16px 0;
}

.service-table__cell-name,
.service-table__cell-price {
  background-color: #fff;
  display: flex;
  align-items: center;
  padding: 14px 20px;
  font-family: "Rubik", sans-serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.5;
  color: #33302e;
  border-left: 1px solid #ebecf0;
  min-height: 50px;
}

.service-table__cell-name {
  flex: 1;
  gap: 10px;
}

.service-table__cell-price {
  width: 140px;
  flex-shrink: 0;
  justify-content: center;
  border-right: 1px solid #ebecf0;
}

/* Checkbox */
.service-table__checkbox {
  width: 22px;
  height: 22px;
  border: 1.5px solid var(--color-orange);
  border-radius: 4px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
}

.service-table__checkbox svg {
  display: none;
  width: 16px;
  height: 16px;
}

.service-table__row--selected .service-table__checkbox {
  background-color: var(--color-orange);
}

.service-table__row--selected .service-table__checkbox svg {
  display: block;
}

.service-table__row--selected .service-table__cell-name,
.service-table__row--selected .service-table__cell-price {
  color: var(--color-orange);
}

/* --- Bottom cards --- */
.service-bottom {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 20px;
}

.service-notes {
  background: #fff;
  border: 1px solid #ebecf0;
  border-radius: 16px;
  padding: 28px 24px;
}

.service-notes__title {
  font-family: "Rubik", sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.5;
  color: #83807e;
  margin-bottom: 16px;
}

.service-notes__text {
  font-family: "Rubik", sans-serif;
  font-weight: 400;
  font-size: 13px;
  line-height: 1.5;
  color: #83807e;
}

.service-notes__text ol {
  padding-left: 20px;
  margin: 0;
}

.service-notes__text ul {
  padding-left: 20px;
  margin: 0;
}

.service-notes__text li {
  margin-bottom: 2px;
}

.service-cart {
  background: #fff;
  border: 1px solid #ebecf0;
  border-radius: 16px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.service-cart__info {
  display: flex;
  gap: 16px;
  align-items: center;
  font-size: 18px;
  line-height: 1.5;
  white-space: nowrap;
}

.service-cart__label {
  font-family: "Magistral", sans-serif;
  font-weight: 500;
  color: #33302e;
}

.service-cart__count {
  font-family: "Magistral", sans-serif;
  font-weight: 700;
  color: var(--color-orange);
}

.service-cart__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-orange);
  color: #fff;
  font-family: "Magistral", sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.5;
  border: none;
  border-radius: 12px;
  padding: 18px 40px;
  cursor: pointer;
  white-space: nowrap;
}

.service-cart__btn:hover {
  opacity: 0.85;
}

/* ===== Tablet (768px+) ===== */
@media (min-width: 768px) {
  .master-services {
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .master-services__title {
    font-size: 36px;
    margin-bottom: 14px;
  }

  .master-services__subtitle {
    font-size: 16px;
    margin-bottom: 40px;
  }

  .service-table__header-name,
  .service-table__header-price {
    font-size: 18px;
    padding: 24px 40px;
  }

  .service-table__header-price {
    width: 200px;
  }

  .service-table__header-price small {
    font-size: 14px;
  }

  .service-table__cell-name,
  .service-table__cell-price {
    font-size: 15px;
    padding: 16px 30px;
    min-height: 55px;
  }

  .service-table__cell-price {
    width: 200px;
  }

  .service-table__checkbox {
    width: 24px;
    height: 24px;
  }

  .service-table__cell-name {
    gap: 12px;
  }

  .service-bottom {
    flex-direction: row;
    gap: 20px;
  }

  .service-notes {
    flex: 1;
    padding: 32px;
  }

  .service-cart {
    flex: 0 0 auto;
    min-width: 300px;
    padding: 32px;
    flex-direction: column;
    gap: 24px;
  }

  .service-cart__info {
    font-size: 20px;
  }
}

/* ===== Desktop (1920px) ===== */
@media (min-width: 1920px) {
  .master-services {
    padding-top: 80px;
    padding-bottom: 80px;
  }

  .master-services__title {
    font-size: 48px;
    margin-bottom: 18px;
  }

  .master-services__subtitle {
    font-size: 20px;
    margin-bottom: 50px;
    max-width: 900px;
  }

  .service-table__header-name,
  .service-table__header-price {
    font-size: 20px;
    padding: 28px 80px;
  }

  .service-table__header-name {
    padding: 28px 80px;
  }

  .service-table__header-price {
    width: 321px;
    padding: 28px 99px;
  }

  .service-table__cell-name,
  .service-table__cell-price {
    font-size: 16px;
    padding: 18px 40px;
    min-height: 60px;
  }

  .service-table__cell-price {
    width: 321px;
    padding: 18px 99px;
  }

  .service-table__checkbox {
    width: 26px;
    height: 26px;
  }

  .service-table__checkbox svg {
    width: 22px;
    height: 22px;
  }

  .service-table__cell-name {
    gap: 14px;
  }

  .service-bottom {
    gap: 30px;
  }

  .service-notes {
    padding: 40px;
    flex: 1;
  }

  .service-notes__title {
    font-size: 18px;
  }

  .service-notes__text {
    font-size: 14px;
  }

  .service-cart {
    flex: 0 0 630px;
    padding: 40px;
    flex-direction: row;
    gap: 40px;
  }

  .service-cart__info {
    font-size: 24px;
    gap: 20px;
  }

  .service-cart__btn {
    font-size: 20px;
    padding: 24px 50px;
    height: 76px;
    width: 240px;
  }
}
