.calculator-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  padding: 30px;
  font-family: 'Segoe UI', sans-serif;
}

.calc-block {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
}

.calc-block label {
  display: block;
  margin-top: 20px;
  font-weight: 600;
  color: #333;
}

.calc-block input,
.calc-block select {
  width: 100%;
  padding: 10px;
  margin-top: 8px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
  background-color: #fff;
}

.calc-block input:focus,
.calc-block select:focus {
  outline: none;
  border-color: #0077cc;
  box-shadow: 0 0 0 3px rgba(0, 119, 204, 0.15);
}

.calc-block input[type="date"] {
  font-family: inherit;
}

/* Чекбокс переноса срока */
.calc-block .checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 20px;
  padding: 12px 14px;
  background-color: #f2f6fa;
  border: 1px solid #d6e4f0;
  border-radius: 6px;
  font-weight: 500;
  font-size: 15px;
  color: #333;
  cursor: pointer;
  line-height: 1.4;
}

.calc-block .checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 2px 0 0 0;
  padding: 0;
  flex-shrink: 0;
  accent-color: #0077cc;
  cursor: pointer;
}

.calc-block button {
  margin-top: 25px;
  padding: 12px 24px;
  background-color: #0077cc;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
}

.calc-block button:hover {
  background-color: #005fa3;
}

.calc-block button:active {
  background-color: #004f8a;
}

/* Карточка результатов */
.result-block {
  background: #f9f9f9;
  padding: 25px;
  border-top: 4px solid #0077cc;
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(0, 50, 100, 0.08);
  flex: 1;
  min-width: 280px;
}

.result-block h2 {
  margin-top: 0;
  color: #0077cc;
}

.result-output p {
  margin: 12px 0;
  font-size: 17px;
  color: #222;
  line-height: 1.5;
}

.result-output strong {
  color: #0077cc;
}

.result-output .deadline-date {
  display: inline-block;
  margin-top: 4px;
  padding: 6px 12px;
  background-color: #0077cc;
  color: #fff;
  border-radius: 6px;
  font-weight: 600;
  font-size: 17px;
}

.result-output .shifted-note {
  font-size: 15px;
  color: #555;
}

.result-output .days-left {
  display: inline-block;
  margin-top: 6px;
  padding: 6px 12px;
  background-color: #e7f4e7;
  color: #1e7d1e;
  border: 1px solid #bfe3bf;
  border-radius: 6px;
  font-weight: 600;
}

.result-output .expired {
  display: inline-block;
  margin-top: 6px;
  padding: 6px 12px;
  background-color: #fdeaea;
  color: #c62828;
  border: 1px solid #f2c4c4;
  border-radius: 6px;
  font-weight: 600;
}

.result-output .error {
  color: #c62828;
  font-weight: 600;
}

.calculator-description {
  max-width: 800px;
  margin: 50px auto;
  padding: 30px;
  background-color: #f2f6fa;
  border-top: 4px solid #0077cc;
  border-radius: 4px;
  line-height: 1.6;
  font-size: 16px;
}

.calculator-description h2,
.calculator-description h3 {
  color: #0077cc;
  margin-top: 20px;
}

.calculator-description ul {
  margin: 10px 0 10px 20px;
}

/* Адаптивность */
@media (max-width: 768px) {
  .calculator-layout {
    flex-direction: column;
    padding: 20px;
    gap: 24px;
  }

  .calc-block,
  .result-block {
    min-width: 0;
    width: 100%;
  }

  .calculator-description {
    margin: 30px 16px;
    padding: 20px;
  }
}
