.q-planning-ways {
  box-sizing: border-box;
  width: 100%;
  max-width: 1180px;
  margin: 1.5rem auto;
  padding: clamp(.85rem, 2.5vw, 1.6rem);
  border: 1px solid #c6d8ca;
  border-radius: 16px;
  background: #f3f8f3;
  color: #183d30;
  overflow-wrap: anywhere;
  scroll-margin-top: 6rem;
}

.q-planning-ways * { box-sizing: border-box; }
.q-planning-ways h2 { margin: 0; font-size: clamp(1.4rem, 3vw, 1.9rem); }
.q-planning-ways p { line-height: 1.5; }

.q-planning-way-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .55rem;
  margin: .85rem 0;
}

.q-planning-way-cards button {
  display: grid;
  gap: .3rem;
  align-content: start;
  min-width: 0;
  min-height: 44px;
  padding: .62rem .8rem;
  border: 1px solid #bdcdbf;
  border-radius: 9px;
  background: #fff;
  color: #183d30;
  font: inherit;
  text-align: start;
  white-space: normal;
  cursor: pointer;
}

.q-planning-way-cards button span { line-height: 1.35; font-size: .9rem; }

.q-planning-way-cards button[aria-pressed="true"] {
  border-color: #315e47;
  box-shadow: inset 0 0 0 1px #315e47;
  background: #e3efe4;
}

.q-planning-ways :is(button, a, input):focus-visible {
  outline: 3px solid #225c42;
  outline-offset: 3px;
}

.q-way-content {
  padding: clamp(.65rem, 2vw, 1rem);
  border: 1px solid #d4dfd5;
  border-radius: 12px;
  background: #fff;
}

.q-way-content h3 { margin: 0 0 .45rem; }

.q-way-content > button, .q-way-guide button {
  max-width: 100%;
  min-height: 44px;
  margin: .2rem .35rem .2rem 0;
  padding: .55rem .8rem;
  border: 1px solid #a9bcae;
  border-radius: 8px;
  background: #eaf2ea;
  color: #183d30;
  font: inherit;
  font-weight: 650;
  white-space: normal;
  cursor: pointer;
}

.q-way-content > a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-inline-end: .5rem;
}

.q-way-content button:disabled { opacity: .55; cursor: default; }
.q-planning-ways [hidden] { display: none !important; }
.q-way-guide { padding-top: .65rem; }
.q-planning-ways [role="alert"] { border-left: 4px solid #b56927; padding: .6rem; background: #fff2dc; }
.q-planning-ways [data-way-status]:empty { display: none; }
.q-way-preview .garden-design { margin-block: .65rem 0; }

.q-way-start-dimensions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 12rem));
  gap: .65rem;
  align-items: end;
  margin: .85rem 0;
}

.q-way-start-dimensions label { display: grid; gap: .35rem; font-weight: 650; }

.q-way-start-dimensions input {
  min-width: 0;
  width: 100%;
  min-height: 44px;
  padding: .65rem;
  border: 1px solid #7d9986;
  border-radius: 8px;
  background: #fff;
  color: #263b30;
  font: inherit;
}

.q-way-start-dimensions button {
  grid-column: 1 / -1;
  justify-self: start;
  min-height: 44px;
  padding: .65rem 1rem;
  border: 1px solid #66836f;
  border-radius: 8px;
  background: #315e47;
  color: #fff;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

@media (max-width: 520px) {
  .q-planning-ways { margin-block: 1rem; }
  .q-planning-way-cards { grid-template-columns: 1fr; }
  .q-planning-way-cards button { gap: .12rem; }
  .q-way-content > button { width: 100%; margin-inline-end: 0; }
}
