.calcshift, .calcshift *, .calcshift :before, .calcshift :after {
  box-sizing: border-box;
}

.calcshift *:focus,
.calcshift *:focus {
  outline: none;
}

.calcshift {
  margin: 40px auto;
  max-width: 100%;
  width: 780px;
  font-size: 16px;
  line-height: 1;
  margin-top: 25px;
}
.calcshift .calcshift-form {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 30px;
  width: 100%;
  border: 1px solid #02B0D3;
  border-radius: 6px;
}
.calcshift .calcshift-sections {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  row-gap: 24px;
  margin-bottom: 32px;
}
.calcshift .calcshift-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  row-gap: 4px;
}
.calcshift .calcshift-section__label {
  font-size: 16px;
  line-height: 1.4;
  text-align: center;
  margin-bottom: 8px; /* Добавлено: небольшой отступ снизу */
}
.calcshift .calcshift-fields {
  display: flex;
  align-items: center;
  justify-content: center;
  align-items: center;
  column-gap: 16px;
}
.calcshift .calcshift-field {
  display: flex;
  justify-content: center;
  align-items: center;
  column-gap: 16px;
}
.calcshift .calcshift-field__label {
  font-size: 16px;
  line-height: 1.4;
  white-space: nowrap;
  text-align: center;
  margin-bottom: 8px; /* Добавлено: небольшой отступ снизу */
}
.calcshift .calcshift-field__input {
  padding: 0 10px;
  height: 40px;
  border: 1px solid #02B0D3;
  border-radius: 6px;
  background: #fff;
  line-height: 40px;
  cursor: pointer;
}
.calcshift .calcshift-radios {
  display: flex;
  justify-content: center;
  align-items: center;
  column-gap: 16px;
}
.calcshift .calcshift-radio {
  display: block;
  position: relative;
  margin: 0;
  padding: 0 0 0 25px;
  line-height: 20px;
  cursor: pointer;
  user-select: none;
}
.calcshift .calcshift-radio__input {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
  cursor: pointer;
}
.calcshift .calcshift-radio__input:checked ~ .calcshift-radio__mark:after {
  display: block;
}
.calcshift .calcshift-radio .calcshift-radio__mark {
  position: absolute;
  top: 0;
  left: 0;
  height: 20px;
  width: 20px;
  border: 1px solid #02B0D3;
  border-radius: 50%;
}
.calcshift .calcshift-radio .calcshift-radio__mark:after {
  content: "";
  position: absolute;
  display: none;
  top: 5px;
  left: 5px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #02B0D3;
}
.calcshift .calcshift-btn-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 0 0 100%;
  max-width: 100%;
}
.calcshift .calcshift-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 0 32px;
  height: 50px;
  border: 1px solid #02B0D3;
  border-radius: 3px;
  text-align: center;
  text-transform: uppercase;
  text-decoration: none;
  background-color: #02B0D3;
  color: #fff;
  cursor: pointer;
}
.calcshift .calcshift-btn:hover {
  border-color: #05b06a;
  text-decoration: none;
  background-color: #05b06a;
}
.calcshift .calcshift-results {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-top: 32px;
  line-height: 1.4;
  width: 100%;
}
.calcshift .calcshift-results__title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 12px;
  text-align: center;
}
.calcshift .calcshift-results__info {
  display: flex;
  justify-content: center;
  align-items: center;
  column-gap: 16px;
}
.calcshift .calcshift-results__info-item > span {
  font-weight: bold;
}
.calcshift .calcshift-results__footer {
  display: flex;
  justify-content: center;
  align-items: center;
  column-gap: 32px;
  padding-top: 16px;
  border-top: 1px solid #f4f4f4;
}
.calcshift .calcshift-results__link-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 16px;
  width: 100%;
  max-width: 500px;
  border: 1px solid #02B0D3;
  border-radius: 3px;
  text-align: center;
}
.calcshift .calcshift-results__link-card__title {
  margin-bottom: 8px;
  font-size: 14px;
}
.calcshift .calcshift-results__link-card__link {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  padding-left: 4px;
  padding-right: 4px;
  width: 100%;
  min-height: 30px;
  border: 1px solid #ccc;
  border-radius: 3px;
  font-size: 16px;
  word-break: break-all;
  text-align: left;
  background-color: #F8F9FA;
  color: #02B0D3;
}
.calcshift .calcshift-results__link-card__btn {
  padding: 8px 16px;
  width: 100%;
  border: 1px solid #02B0D3;
  border-radius: 3px;
  background-color: #02B0D3;
  color: #fff;
  cursor: pointer;
}
.calcshift .calcshift-results__link-card__btn:hover {
  border-color: #05b06a;
  background-color: #05b06a;
}

.calcshift .calcshift-results__calendars {
  display: grid;
  grid-template-columns: repeat(auto-fit, 280px);
  justify-content: center;
  gap: 24px;
  width: 100%;
  margin: 20px 0;
}

.calcshift .calendar {
  width: 280px;
  max-width: 280px;
  box-sizing: border-box;
}

.calcshift .calendar__title {
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid #02B0D3;
  text-align: center;
  font-size: 18px;
  line-height: 1;
  font-weight: bold;
  color: #333;
}

.calcshift .calendar table {
  margin-bottom: 8px;
  width: 100%;
  border-collapse: collapse;
}

.calcshift .calendar th {
  padding: 8px 4px;
  text-align: center;
  font-size: 12px;
  font-weight: bold;
  color: #666;
  background-color: #e0e0e0;
}

.calcshift .calendar td {
  padding: 8px 4px;
  text-align: center;
  font-size: 14px;
  border: 1px solid #f0f0f0;
  position: relative;
}

.calcshift .calendar td .night-label {
  position: absolute;
  top: 1px;
  right: 1px;
  font-size: 10px;
  font-weight: bold;
  line-height: 1;
  color: #ffffff;
}

.calcshift .calendar td.empty {
  background: transparent;
  border: none;
}

.calcshift .calendar td.work {
  background-color: #02B0D3;
  color: #fff;
  font-weight: bold;
}

.calcshift .calendar td:not(.empty):not(.work) {
  background-color: #f9f9f9;
}

.calcshift .calendar .month-summary {
  padding: 12px;
  border-radius: 4px;
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
  background: #F0F8FF;
}

@media (max-width: 768px) {
  .calcshift .calcshift-form {
    padding: 16px;
  }
  .calcshift .calcshift-sections {
    row-gap: 8px;
  }
  .calcshift .calcshift-fields {
    flex-direction: column;
    row-gap: 16px;
  }
  .calcshift .calcshift-field {
    flex-direction: column;
    row-gap: 0;
  }
  .calcshift .calcshift-field__input.calcshift-field__input--workdays,
  .calcshift .calcshift-field__input.calcshift-field__input--offdays,
  .calcshift .calcshift-field__input.calcshift-field__input--hours,
  .calcshift .calcshift-field__input.calcshift-field__input--months {
    width: 100px;
  }
  .calcshift .calcshift-results__info {
    display: flex;
    flex-direction: column;
    column-gap: 8px;
  }
  .calcshift .calcshift-results__footer {
    flex-direction: column;
    row-gap: 16px;
  }

  .calcshift .calendar th,
  .calcshift .calendar td {
    padding: 6px 2px;
    font-size: 12px;
  }
}
@media (max-width: 500px) {
  .calcshift .calcshift-sections {
    width: 100%;
  }
  .calcshift .calcshift-section {
    width: 100%;
  }
  .calcshift .calcshift-fields {
    width: 100%;
  }
  .calcshift .calcshift-field {
    width: 100%;
  }
  .calcshift .calcshift-field__input.calcshift-field__input--start,
  .calcshift .calcshift-field__input.calcshift-field__input--workdays,
  .calcshift .calcshift-field__input.calcshift-field__input--offdays,
  .calcshift .calcshift-field__input.calcshift-field__input--hours,
  .calcshift .calcshift-field__input.calcshift-field__input--months {
    width: 100%;
  }
  .calcshift .calcshift-radios {
    flex-direction: column;
    row-gap: 8px;
  }
  .calcshift .calcshift-radio {
    width: 164px;
  }
}
@media (min-width: 768px) {
  .calcshift .calcshift-field__input.calcshift-field__input--workdays,
  .calcshift .calcshift-field__input.calcshift-field__input--offdays,
  .calcshift .calcshift-field__input.calcshift-field__input--hours,
  .calcshift .calcshift-field__input.calcshift-field__input--months {
    flex: 0 0 100px;
    max-width: 100px;
  }
}