/* ========================================
   ОСНОВНИ НАСТРОЙКИ
======================================== */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family:
    Arial,
    Helvetica,
    sans-serif;
  color: #17382f;
  background: #f4f8f6;
}

button,
a,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  border: none;
}

img {
  display: block;
  max-width: 100%;
}


/* ========================================
   ГОРНО МЕНЮ
======================================== */

.lesson-header {
  position: sticky;
  top: 0;
  z-index: 100;

  display: grid;
  grid-template-columns:
    minmax(180px, 1fr)
    minmax(280px, 520px)
    minmax(140px, 1fr);

  align-items: center;
  gap: 32px;

  min-height: 88px;
  padding: 16px 6%;

  border-bottom: 1px solid #dfe9e4;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
}

.lesson-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;

  width: max-content;

  color: #17382f;
  font-weight: 800;
  text-decoration: none;
}

.lesson-logo img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.lesson-progress-wrapper {
  width: 100%;
}

.lesson-progress-information {
  display: flex;
  justify-content: space-between;
  align-items: center;

  margin-bottom: 8px;

  color: #526b62;
  font-size: 14px;
  font-weight: 700;
}

.lesson-progress-track {
  width: 100%;
  height: 9px;

  overflow: hidden;
  border-radius: 999px;
  background: #e1ece7;
}

.lesson-progress-bar {
  width: 17%;
  height: 100%;

  border-radius: inherit;
  background: #15926f;

  transition: width 0.35s ease;
}

.back-to-site-button {
  justify-self: end;

  display: inline-flex;
  justify-content: center;
  align-items: center;

  min-height: 44px;
  padding: 10px 18px;

  border: 1px solid #cfe0d8;
  border-radius: 10px;

  color: #17382f;
  background: #ffffff;

  font-weight: 800;
  text-decoration: none;

  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.back-to-site-button:hover {
  transform: translateY(-1px);
  border-color: #15926f;
  background: #f3faf7;
}


/* ========================================
   ОСНОВНИ БУТОНИ
======================================== */

.primary-button,
.secondary-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;

  min-height: 48px;
  padding: 12px 22px;

  border-radius: 11px;

  font-weight: 800;
  cursor: pointer;

  transition:
    transform 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.primary-button {
  color: #ffffff;
  background: #15926f;
  box-shadow: 0 10px 24px rgba(21, 146, 111, 0.2);
}

.primary-button:hover {
  transform: translateY(-2px);
  background: #117b5e;
  box-shadow: 0 14px 28px rgba(21, 146, 111, 0.25);
}

.primary-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.secondary-button {
  border: 1px solid #cfe0d8;
  color: #17382f;
  background: #ffffff;
}

.secondary-button:hover {
  transform: translateY(-1px);
  border-color: #15926f;
  background: #f3faf7;
}


/* ========================================
   HERO СЕКЦИЯ
======================================== */

.lesson-hero {
  display: grid;
  grid-template-columns:
    minmax(0, 1.25fr)
    minmax(320px, 0.75fr);

  align-items: center;
  gap: 64px;

  min-height: 560px;
  padding: 80px 8%;

  background:
    radial-gradient(
      circle at 85% 20%,
      rgba(226, 203, 255, 0.62),
      transparent 30%
    ),
    radial-gradient(
      circle at 15% 80%,
      rgba(188, 235, 218, 0.55),
      transparent 33%
    ),
    linear-gradient(
      135deg,
      #f7fbf9 0%,
      #f6f2ff 100%
    );
}

.lesson-hero-content {
  max-width: 760px;
}

.lesson-label {
  margin-bottom: 16px;

  color: #15926f;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.lesson-hero h1 {
  max-width: 760px;
  margin-bottom: 22px;

  color: #14382e;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.03;
  letter-spacing: -0.04em;
}

.lesson-introduction {
  max-width: 700px;
  margin-bottom: 30px;

  color: #5c7067;
  font-size: 19px;
  line-height: 1.7;
}

.lesson-hero-summary {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;

  padding: 22px;

  border: 1px solid rgba(205, 223, 215, 0.9);
  border-radius: 24px;

  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 24px 60px rgba(54, 83, 70, 0.12);
  backdrop-filter: blur(10px);
}

.lesson-hero-summary article {
  display: flex;
  flex-direction: column;
  justify-content: space-between;

  min-height: 132px;
  padding: 20px;

  border-radius: 17px;
  background: #f3f9f6;
}

.lesson-hero-summary article:nth-child(2) {
  background: #f5f0ff;
}

.lesson-hero-summary article:nth-child(3) {
  background: #fff5e7;
}

.lesson-hero-summary article:nth-child(4) {
  background: #eef6ff;
}

.lesson-hero-summary span {
  color: #61756c;
  font-size: 14px;
  font-weight: 700;
}

.lesson-hero-summary strong {
  color: #14382e;
  font-size: 31px;
}


/* ========================================
   РАБОТНА ЗОНА
======================================== */

.lesson-workspace {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 28px;

  width: min(1460px, calc(100% - 48px));
  margin: 60px auto;
  align-items: start;
}

.lesson-sidebar {
  position: sticky;
  top: 116px;

  display: flex;
  flex-direction: column;
  gap: 10px;

  padding: 16px;

  border: 1px solid #dce8e2;
  border-radius: 20px;

  background: #ffffff;
  box-shadow: 0 18px 45px rgba(40, 68, 55, 0.08);
}

.lesson-step {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 12px;

  width: 100%;
  padding: 13px;

  border-radius: 13px;

  color: #52675e;
  background: transparent;

  text-align: left;
  cursor: pointer;

  transition:
    color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease;
}

.lesson-step:hover {
  transform: translateX(2px);
  background: #f3f8f5;
}

.lesson-step.active {
  color: #17382f;
  background: #e9f6ef;
}

.step-number {
  display: inline-flex;
  justify-content: center;
  align-items: center;

  width: 38px;
  height: 38px;

  border-radius: 50%;

  color: #17382f;
  background: #e8f0ec;

  font-weight: 900;
}

.lesson-step.active .step-number {
  color: #ffffff;
  background: #15926f;
}

.lesson-step > span:last-child {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.lesson-step strong {
  font-size: 15px;
}

.lesson-step small {
  color: #7a8b83;
  font-size: 12px;
  line-height: 1.4;
}

.lesson-panel {
  min-height: 660px;
  padding: clamp(28px, 5vw, 58px);

  border: 1px solid #dce8e2;
  border-radius: 24px;

  background: #ffffff;
  box-shadow: 0 20px 55px rgba(40, 68, 55, 0.08);
}

.lesson-screen {
  display: none;
}

.lesson-screen.active {
  display: block;
}

.screen-label {
  margin-bottom: 12px;

  color: #15926f;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.lesson-screen h2 {
  max-width: 850px;
  margin-bottom: 18px;

  color: #14382e;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.08;
}

.lesson-screen > p:not(.screen-label) {
  max-width: 820px;

  color: #61756c;
  font-size: 18px;
  line-height: 1.7;
}


/* ========================================
   КАРТА НА МИСИЯТА
======================================== */

.mission-card {
  position: relative;

  max-width: 900px;
  margin-top: 34px;
  padding: 30px;

  overflow: hidden;

  border: 1px solid #d6e7df;
  border-radius: 19px;

  background:
    linear-gradient(
      135deg,
      #edf8f3 0%,
      #f7f4ff 100%
    );
}

.mission-card::after {
  content: "€";

  position: absolute;
  right: 28px;
  bottom: -36px;

  color: rgba(21, 146, 111, 0.09);
  font-size: 150px;
  font-weight: 900;
  line-height: 1;
}

.mission-card h3 {
  position: relative;
  z-index: 1;

  margin-bottom: 12px;

  color: #17382f;
  font-size: 24px;
}

.mission-card p {
  position: relative;
  z-index: 1;

  max-width: 700px;

  color: #596f65;
  font-size: 17px;
  line-height: 1.7;
}


/* ========================================
   ДОЛНИ БУТОНИ НА ЕКРАНИТЕ
======================================== */

.screen-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;

  margin-top: 42px;
  padding-top: 24px;

  border-top: 1px solid #e3ece7;
}

.screen-actions-end {
  justify-content: flex-end;
}


/* ========================================
   АДАПТИВЕН ДИЗАЙН
======================================== */

@media (max-width: 1050px) {
  .lesson-header {
    grid-template-columns: auto 1fr auto;
    gap: 18px;
    padding-inline: 4%;
  }

  .lesson-logo span {
    display: none;
  }

  .lesson-hero {
    grid-template-columns: 1fr;
  }

  .lesson-hero-summary {
    max-width: 700px;
  }

  .lesson-workspace {
    grid-template-columns: 1fr;
  }

  .lesson-sidebar {
    position: static;

    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 760px) {
  .lesson-header {
    grid-template-columns: auto 1fr;
    min-height: auto;
    padding: 12px 18px;
  }

  .lesson-progress-wrapper {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .back-to-site-button {
    padding: 9px 12px;
    font-size: 13px;
  }

  .lesson-hero {
    gap: 38px;
    min-height: auto;
    padding: 60px 24px;
  }

  .lesson-hero h1 {
    font-size: 44px;
  }

  .lesson-introduction {
    font-size: 17px;
  }

  .lesson-hero-summary {
    grid-template-columns: 1fr 1fr;
    padding: 14px;
  }

  .lesson-hero-summary article {
    min-height: 110px;
    padding: 16px;
  }

  .lesson-workspace {
    width: calc(100% - 28px);
    margin-block: 28px;
  }

  .lesson-sidebar {
    grid-template-columns: 1fr 1fr;
    padding: 12px;
  }

  .lesson-step {
    grid-template-columns: 34px 1fr;
    padding: 10px;
  }

  .step-number {
    width: 32px;
    height: 32px;
  }

  .lesson-panel {
    min-height: 560px;
    padding: 28px 22px;
  }

  .screen-actions {
    flex-direction: column-reverse;
  }

  .screen-actions button {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .lesson-hero-summary {
    grid-template-columns: 1fr;
  }

  .lesson-sidebar {
    display: flex;
    overflow-x: auto;
    flex-direction: row;
  }

  .lesson-step {
    min-width: 210px;
  }

  .lesson-hero h1 {
    font-size: 38px;
  }
}
/* ========================================
   СТЪПКА 2 – ДЕСТИНАЦИИ
======================================== */

.destination-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;

  margin-top: 36px;
}

.destination-card {
  position: relative;

  display: flex;
  flex-direction: column;
  align-items: stretch;

  min-height: 350px;
  padding: 26px;

  overflow: hidden;

  border: 2px solid #dce8e2;
  border-radius: 20px;

  color: #17382f;
  background: #ffffff;

  text-align: left;
  cursor: pointer;

  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    background 0.22s ease;
}

.destination-card:hover {
  transform: translateY(-5px);
  border-color: #8fc9b3;
  box-shadow: 0 18px 38px rgba(40, 68, 55, 0.12);
}

.destination-card.selected {
  border-color: #15926f;
  background: #f0faf5;
  box-shadow: 0 18px 42px rgba(21, 146, 111, 0.18);
}

.destination-card.selected::after {
  content: "Избрано ✓";

  position: absolute;
  right: 18px;
  bottom: 17px;

  color: #15926f;
  font-size: 13px;
  font-weight: 900;
}

.destination-badge {
  align-self: flex-start;

  min-height: 30px;
  padding: 7px 11px;

  border-radius: 999px;

  color: #735623;
  background: #fff1d4;

  font-size: 12px;
  font-weight: 800;
}

.destination-card:nth-child(2)
.destination-badge {
  color: #60448a;
  background: #eee5ff;
}

.destination-card:nth-child(3)
.destination-badge {
  color: #315f7d;
  background: #e4f2fb;
}

.destination-icon {
  display: flex;
  justify-content: center;
  align-items: center;

  width: 82px;
  height: 82px;
  margin: 28px 0 20px;

  border-radius: 22px;

  background: #edf8f3;
  font-size: 42px;
}

.destination-card:nth-child(2)
.destination-icon {
  background: #f3eeff;
}

.destination-card:nth-child(3)
.destination-icon {
  background: #ebf6fc;
}

.destination-card h3 {
  margin-bottom: 22px;

  color: #17382f;
  font-size: 25px;
  line-height: 1.2;
}

.destination-details {
  display: grid;
  gap: 12px;

  margin-top: auto;
  padding-top: 18px;

  border-top: 1px solid #e1ebe6;
}

.destination-details div {
  display: flex;
  justify-content: space-between;
  gap: 12px;

  color: #62766d;
  font-size: 14px;
}

.destination-details strong {
  color: #17382f;
  text-align: right;
}


/* Избраната дестинация */

.selected-destination {
  margin-top: 26px;
  padding: 22px 24px;

  border: 1px solid #bcdcca;
  border-radius: 16px;

  background: #edf9f3;
}

.selected-destination span {
  display: block;
  margin-bottom: 6px;

  color: #15926f;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.selected-destination strong {
  display: block;
  margin-bottom: 5px;

  color: #17382f;
  font-size: 22px;
}

.selected-destination p {
  color: #5d7168;
  line-height: 1.6;
}

.selected-destination[hidden] {
  display: none;
}


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

  .destination-card {
    min-height: 290px;
  }
}

@media (max-width: 600px) {
  .destination-card {
    min-height: auto;
    padding: 21px;
  }

  .destination-details div {
    flex-direction: column;
    gap: 4px;
  }

  .destination-details strong {
    text-align: left;
  }
}
/* ========================================
   СТЪПКА 3 – БЮДЖЕТ И ТРАНСПОРТ
======================================== */

.budget-information-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;

  margin-top: 34px;
}

.budget-information-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;

  min-height: 130px;
  padding: 20px;

  border: 1px solid #dce8e2;
  border-radius: 17px;

  background: #f4f9f6;
}

.budget-information-card:nth-child(2) {
  background: #f5f1ff;
}

.budget-information-card:nth-child(3) {
  background: #fff5e8;
}

.budget-information-card:nth-child(4) {
  background: #edf6fc;
}

.budget-information-card span {
  color: #657970;
  font-size: 14px;
  font-weight: 700;
}

.budget-information-card strong {
  color: #17382f;
  font-size: 26px;
  line-height: 1.2;
}


/* Задачи */

.budget-tasks {
  display: grid;
  gap: 18px;

  margin-top: 34px;
  margin-bottom: 26px;
}

.budget-task {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 18px;

  padding: 24px;

  border: 1px solid #dce8e2;
  border-radius: 18px;

  background: #ffffff;
}

.budget-task-number {
  display: flex;
  justify-content: center;
  align-items: center;

  width: 44px;
  height: 44px;

  border-radius: 50%;

  color: #ffffff;
  background: #15926f;

  font-size: 18px;
  font-weight: 900;
}

.budget-task-content label {
  display: block;
  margin-bottom: 8px;

  color: #17382f;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.5;
}

.task-hint {
  margin-bottom: 16px;

  color: #71837b;
  font-size: 14px;
  line-height: 1.6;
}

.answer-row {
  display: flex;
  align-items: center;
  gap: 10px;

  max-width: 360px;
}

.answer-row input {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;

  border: 1px solid #cfded7;
  border-radius: 10px;
  outline: none;

  color: #17382f;
  background: #ffffff;

  font-weight: 700;

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.answer-row input:focus {
  border-color: #15926f;
  box-shadow: 0 0 0 4px rgba(21, 146, 111, 0.12);
}

.answer-row input.correct-answer {
  border-color: #15926f;
  background: #effaf5;
}

.answer-row input.wrong-answer {
  border-color: #c84e4e;
  background: #fff2f2;
}

.answer-unit {
  color: #17382f;
  font-size: 17px;
  font-weight: 900;
}


/* Обратна връзка */

.budget-feedback {
  margin-top: 24px;
  padding: 20px 22px;

  border-radius: 15px;

  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
}

.budget-feedback.success {
  border: 1px solid #acd7c3;
  color: #176448;
  background: #eaf8f1;
}

.budget-feedback.error {
  border: 1px solid #e7baba;
  color: #9b3434;
  background: #fff0f0;
}

.budget-feedback[hidden] {
  display: none;
}


/* Адаптивен дизайн */

@media (max-width: 1100px) {
  .budget-information-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 650px) {
  .budget-information-grid {
    grid-template-columns: 1fr;
  }

  .budget-task {
    grid-template-columns: 1fr;
  }

  .budget-task-number {
    width: 38px;
    height: 38px;
  }

  .answer-row {
    max-width: none;
  }
}
/* ========================================
   СТЪПКА 4 – ХОТЕЛ И ХРАНА
======================================== */

.expense-section {
  margin-top: 34px;
  padding: 28px;

  border: 1px solid #dce8e2;
  border-radius: 20px;

  background: #fbfdfc;
}

.food-expense-section {
  margin-top: 26px;
  background: #f8fbff;
}

.expense-section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;

  margin-bottom: 24px;
}

.expense-label {
  display: block;
  margin-bottom: 6px;

  color: #15926f;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.expense-section-heading h3 {
  color: #17382f;
  font-size: 28px;
}

.expense-main-price {
  padding: 10px 15px;

  border-radius: 999px;

  color: #17382f;
  background: #e9f6ef;

  font-size: 14px;
  font-weight: 900;
}


/* Данни за хотела */

.hotel-offer {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;

  margin-bottom: 26px;
}

.hotel-offer div {
  display: flex;
  flex-direction: column;
  gap: 10px;

  min-height: 100px;
  padding: 17px;

  border-radius: 15px;
  background: #ffffff;
  border: 1px solid #e0eae5;
}

.hotel-offer div:nth-child(2) {
  background: #fff4e5;
}

.hotel-offer div:nth-child(3) {
  background: #f3efff;
}

.hotel-offer div:nth-child(4) {
  background: #eef7fc;
}

.hotel-offer span {
  color: #6a7d74;
  font-size: 13px;
  font-weight: 700;
}

.hotel-offer strong {
  color: #17382f;
  font-size: 24px;
}


/* Таблица за храната */

.meal-table {
  margin-bottom: 26px;
  overflow: hidden;

  border: 1px solid #dce8e2;
  border-radius: 16px;

  background: #ffffff;
}

.meal-table-header,
.meal-table-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;

  padding: 15px 18px;
}

.meal-table-header {
  color: #ffffff;
  background: #15926f;

  font-size: 14px;
  font-weight: 900;
}

.meal-table-row {
  border-top: 1px solid #e4ece8;
  color: #5f736a;
}

.meal-table-row strong {
  color: #17382f;
}


/* Задачи */

.expense-tasks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.expense-task {
  padding: 20px;

  border: 1px solid #dce8e2;
  border-radius: 16px;

  background: #ffffff;
}

.expense-task label {
  display: block;
  min-height: 72px;
  margin-bottom: 16px;

  color: #17382f;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.5;
}

.expense-task .answer-row {
  max-width: none;
}


/* Адаптивен дизайн */

@media (max-width: 1050px) {
  .hotel-offer {
    grid-template-columns: repeat(2, 1fr);
  }

  .expense-tasks {
    grid-template-columns: 1fr;
  }

  .expense-task label {
    min-height: auto;
  }
}

@media (max-width: 650px) {
  .expense-section {
    padding: 20px;
  }

  .expense-section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .hotel-offer {
    grid-template-columns: 1fr;
  }

  .meal-table-header,
  .meal-table-row {
    grid-template-columns: 1fr auto;
  }
}
/* ========================================
   СТЪПКА 5 – БЮДЖЕТНА ПРОВЕРКА
======================================== */

/* Обобщение на първоначалния план */

.final-budget-summary {
  margin-top: 34px;
  padding: 28px;

  border: 1px solid #dce8e2;
  border-radius: 20px;

  background: #fbfdfc;
}

.final-budget-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;

  margin-bottom: 24px;
}

.final-budget-heading h3 {
  color: #17382f;
  font-size: 27px;
}

.available-budget-badge {
  padding: 11px 16px;

  border-radius: 999px;

  color: #176448;
  background: #e9f7ef;

  font-size: 14px;
  font-weight: 900;
}

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

.final-budget-grid article {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;

  min-height: 115px;
  padding: 19px;

  border: 1px solid #e0e9e5;
  border-radius: 16px;

  background: #ffffff;
}

.final-budget-grid article:nth-child(1) {
  background: #eef7fc;
}

.final-budget-grid article:nth-child(2) {
  background: #f4f0ff;
}

.final-budget-grid article:nth-child(3) {
  background: #fff5e8;
}

.final-budget-grid .subtotal-card {
  color: #ffffff;
  background: #17382f;
}

.final-budget-grid span {
  color: #657970;
  font-size: 13px;
  font-weight: 700;
}

.final-budget-grid strong {
  color: #17382f;
  font-size: 24px;
}

.final-budget-grid .subtotal-card span {
  color: rgba(255, 255, 255, 0.72);
}

.final-budget-grid .subtotal-card strong {
  color: #ffffff;
}


/* Непредвидени разходи */

.unexpected-expenses-section {
  margin-top: 26px;
  padding: 28px;

  border: 1px solid #ead7b3;
  border-radius: 20px;

  background: #fffaf1;
}

.unexpected-expenses-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;

  margin-bottom: 24px;
}

.unexpected-expenses-heading h3 {
  color: #17382f;
  font-size: 27px;
}

.percentage-badge {
  display: inline-flex;
  justify-content: center;
  align-items: center;

  width: 64px;
  height: 64px;

  border-radius: 50%;

  color: #8b5a18;
  background: #ffe8bc;

  font-size: 20px;
  font-weight: 900;
}

.unexpected-expenses-tasks {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));
  gap: 16px;

  margin-bottom: 22px;
}

.unexpected-expenses-tasks
.expense-task {
  background: #ffffff;
}


/* Промяна на плана */

.budget-solution-section {
  margin-top: 26px;
  padding: 28px;

  border: 1px solid #d9d0ef;
  border-radius: 20px;

  background:
    linear-gradient(
      135deg,
      #faf8ff 0%,
      #f5fbf8 100%
    );
}

.budget-solution-heading {
  max-width: 800px;
  margin-bottom: 24px;
}

.budget-solution-heading h3 {
  margin-bottom: 10px;

  color: #17382f;
  font-size: 28px;
}

.budget-solution-heading p {
  color: #667a71;
  line-height: 1.65;
}

.budget-option-grid {
  display: grid;
  grid-template-columns:
    repeat(3, minmax(0, 1fr));
  gap: 16px;

  margin-bottom: 24px;
}

.budget-option-card {
  position: relative;

  display: block;
  min-height: 185px;
  padding: 20px;

  border: 2px solid #dedfea;
  border-radius: 17px;

  background: #ffffff;

  cursor: pointer;

  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.budget-option-card:hover {
  transform: translateY(-3px);
  border-color: #a99bc9;
  box-shadow:
    0 14px 30px
    rgba(54, 45, 80, 0.1);
}

.budget-option-card input {
  width: 19px;
  height: 19px;
  margin-bottom: 17px;

  accent-color: #15926f;
}

.budget-option-card:has(input:checked) {
  border-color: #15926f;
  background: #eef9f4;
  box-shadow:
    0 14px 32px
    rgba(21, 146, 111, 0.15);
}

.budget-option-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.budget-option-content strong {
  color: #17382f;
  font-size: 18px;
}

.budget-option-content small {
  min-height: 42px;

  color: #697c73;
  font-size: 14px;
  line-height: 1.5;
}

.budget-option-content > span {
  margin-top: auto;

  color: #15926f;
  font-size: 14px;
  font-weight: 900;
}


/* Резултат от новия план */

.adjusted-budget-result {
  display: grid;
  grid-template-columns:
    repeat(5, minmax(0, 1fr));
  gap: 13px;

  margin-top: 24px;
}

.adjusted-budget-result[hidden] {
  display: none;
}

.adjusted-budget-result > div {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;

  min-height: 105px;
  padding: 17px;

  border: 1px solid #dce8e2;
  border-radius: 15px;

  background: #ffffff;
}

.adjusted-budget-result span {
  color: #687b72;
  font-size: 13px;
  font-weight: 700;
}

.adjusted-budget-result strong {
  color: #17382f;
  font-size: 21px;
}

.adjusted-budget-result
.adjusted-total-card {
  color: #ffffff;
  background: #15926f;
}

.adjusted-budget-result
.adjusted-total-card span {
  color: rgba(255, 255, 255, 0.75);
}

.adjusted-budget-result
.adjusted-total-card strong {
  color: #ffffff;
}


/* Адаптивен дизайн */

@media (max-width: 1150px) {
  .final-budget-grid {
    grid-template-columns:
      repeat(2, 1fr);
  }

  .adjusted-budget-result {
    grid-template-columns:
      repeat(2, 1fr);
  }

  .adjusted-budget-result
  .adjusted-total-card {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .budget-option-grid {
    grid-template-columns: 1fr;
  }

  .budget-option-card {
    min-height: auto;
  }

  .budget-option-content small {
    min-height: auto;
  }
}

@media (max-width: 700px) {
  .final-budget-summary,
  .unexpected-expenses-section,
  .budget-solution-section {
    padding: 21px;
  }

  .final-budget-heading,
  .unexpected-expenses-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .unexpected-expenses-tasks,
  .final-budget-grid,
  .adjusted-budget-result {
    grid-template-columns: 1fr;
  }

  .adjusted-budget-result
  .adjusted-total-card {
    grid-column: auto;
  }
}


/* Сравнение с първоначалния план */

.savings-check-section {
  margin-top: 24px;
  padding-top: 24px;

  border-top: 1px solid #d9d0ef;
}

.savings-check-section[hidden] {
  display: none;
}

.savings-check-section h4 {
  margin-bottom: 16px;

  color: #17382f;
  font-size: 17px;
}

.savings-check-section .expense-task {
  margin-bottom: 16px;
}
/* ========================================
   СТЪПКА 6 – ФИНАЛЕН ПЛАН
======================================== */

/* Име на плана */

.final-identity-statement {
  margin-bottom: 6px;

  color: #17382f;
  font-size: 20px;
  font-weight: 800;
}

.final-team-section {
  display: flex;
  flex-direction: column;
  gap: 10px;

  margin-top: 30px;
  padding: 24px;

  border: 1px solid #dce8e2;
  border-radius: 18px;

  background: #f7fbf9;
}

.final-team-section label {
  color: #17382f;
  font-size: 16px;
  font-weight: 800;
}

.final-team-section input {
  width: 100%;
  padding: 14px 16px;

  border: 1px solid #cfded7;
  border-radius: 12px;

  color: #17382f;
  background: #ffffff;

  font: inherit;
  font-size: 16px;

  outline: none;
}

.final-team-section input:focus {
  border-color: #15926f;
  box-shadow:
    0 0 0 4px
    rgba(21, 146, 111, 0.12);
}


/* Финално обобщение */

.final-plan-card {
  margin-top: 26px;
  padding: 28px;

  border: 1px solid #d9e6e0;
  border-radius: 22px;

  background:
    linear-gradient(
      135deg,
      #f7fcfa 0%,
      #ffffff 100%
    );
}

.final-plan-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;

  margin-bottom: 24px;
}

.final-plan-heading h3 {
  margin-top: 6px;

  color: #17382f;
  font-size: 29px;
}

.final-plan-status {
  padding: 11px 16px;

  border-radius: 999px;

  color: #176448;
  background: #e3f6ec;

  font-size: 14px;
  font-weight: 900;
  text-align: center;
}

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

.final-plan-grid article {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;

  min-height: 105px;
  padding: 18px;

  border: 1px solid #dce7e2;
  border-radius: 16px;

  background: #ffffff;
}

.final-plan-grid article span {
  color: #687b72;
  font-size: 13px;
  font-weight: 700;
}

.final-plan-grid article strong {
  color: #17382f;
  font-size: 22px;
}

.final-plan-grid
.final-plan-total {
  color: #ffffff;
  background: #17382f;
}

.final-plan-grid
.final-plan-total span {
  color: rgba(255, 255, 255, 0.72);
}

.final-plan-grid
.final-plan-total strong {
  color: #ffffff;
}

.final-plan-grid
.final-plan-money-left {
  color: #ffffff;
  background: #15926f;
}

.final-plan-grid
.final-plan-money-left span {
  color: rgba(255, 255, 255, 0.78);
}

.final-plan-grid
.final-plan-money-left strong {
  color: #ffffff;
}


/* Направени промени */

.final-decisions-section {
  margin-top: 26px;
  padding: 28px;

  border: 1px solid #e2d9f1;
  border-radius: 20px;

  background: #faf8ff;
}

.final-decisions-section h3 {
  margin-top: 7px;
  margin-bottom: 20px;

  color: #17382f;
  font-size: 27px;
}

.final-decisions-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.final-decisions-list p {
  margin: 0;
  padding: 14px 16px;

  border: 1px solid #ded7ea;
  border-radius: 13px;

  color: #53675e;
  background: #ffffff;

  line-height: 1.55;
}

.final-decision-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;

  padding: 15px 17px;

  border: 1px solid #d7e6df;
  border-radius: 14px;

  color: #23483d;
  background: #ffffff;

  font-weight: 700;
  line-height: 1.5;
}

.final-decision-item::before {
  content: "✓";

  display: flex;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;

  width: 24px;
  height: 24px;

  border-radius: 50%;

  color: #ffffff;
  background: #15926f;

  font-size: 13px;
  font-weight: 900;
}


/* Защита на плана */

.final-defense-section {
  margin-top: 26px;
  padding: 28px;

  border: 1px solid #d9e6e0;
  border-radius: 20px;

  background: #f2fbf7;
}

.final-defense-section h3 {
  margin-top: 7px;
  margin-bottom: 12px;

  color: #17382f;
  font-size: 26px;
}

.final-defense-section p {
  max-width: 720px;

  color: #3f5850;
  font-size: 16px;
  line-height: 1.6;
}


/* Анализ и аргументация */

.final-analysis-section {
  margin-top: 26px;
  padding: 28px;

  border: 1px solid #eadfcb;
  border-radius: 20px;

  background: #fffcf7;
}

.final-analysis-section > h3 {
  margin-top: 7px;
  margin-bottom: 24px;

  color: #17382f;
  font-size: 28px;
}

.final-question {
  position: relative;

  display: flex;
  flex-direction: column;
  gap: 10px;

  margin-bottom: 19px;
}

.final-question:last-child {
  margin-bottom: 0;
}

.final-question label {
  color: #17382f;
  font-size: 16px;
  font-weight: 800;
}

.final-question textarea {
  width: 100%;
  min-height: 125px;
  padding: 15px 17px 35px;

  border: 1px solid #d7ddd9;
  border-radius: 14px;

  color: #17382f;
  background: #ffffff;

  font: inherit;
  font-size: 15px;
  line-height: 1.6;

  resize: vertical;
  outline: none;
}

.final-question textarea:focus {
  border-color: #15926f;
  box-shadow:
    0 0 0 4px
    rgba(21, 146, 111, 0.11);
}

.character-counter {
  position: absolute;
  right: 13px;
  bottom: 10px;

  color: #84938c;
  font-size: 12px;
  font-weight: 700;
}


/* Бутон за завършване */

#finish-project-button {
  width: 100%;
  margin-top: 26px;
}


/* Финална карта */

.project-complete-card {
  margin-top: 24px;
  padding: 34px;

  border: 1px solid #bfe4d2;
  border-radius: 22px;

  text-align: center;

  background:
    linear-gradient(
      135deg,
      #eaf9f2 0%,
      #f8fffb 100%
    );
}

.project-complete-card[hidden] {
  display: none;
}

.completion-label {
  display: inline-block;
  margin-bottom: 12px;
  padding: 8px 14px;

  border-radius: 999px;

  color: #176448;
  background: #d9f3e6;

  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.project-complete-card h3 {
  margin-bottom: 10px;

  color: #17382f;
  font-size: 31px;
}

.project-complete-card p {
  max-width: 650px;
  margin: 0 auto;

  color: #597067;
  line-height: 1.7;
}


/* Адаптивен дизайн */

@media (max-width: 1100px) {
  .final-plan-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .final-plan-card,
  .final-decisions-section,
  .final-defense-section,
  .final-analysis-section {
    padding: 21px;
  }

  .final-plan-heading {
    flex-direction: column;
  }

  .final-plan-grid {
    grid-template-columns: 1fr;
  }

  .final-plan-status {
    width: 100%;
  }

  .project-complete-card {
    padding: 25px 20px;
  }
}