.brief {
  --bc: var(--main-color, #3b6fd8);
  --bc-soft: rgba(var(--main-color-rgb, 59, 111, 216), 0.08);
  --b-line: rgba(15, 23, 42, 0.12);
  --b-muted: #5b6472;
  padding: clamp(16px, 2vw, 40px) 0 clamp(48px, 5vw, 96px);
  color: #1c1c1c;
}
.brief [hidden] {
  display: none !important;
}
.brief__intro {
  max-width: 760px;
  margin-bottom: clamp(20px, 2vw, 40px);
}
.brief__title.md-main-title {
  width: auto;
  margin: 0 0 12px;
  text-align: left;
}
.brief__sub {
  margin: 0;
  font-size: clamp(15px, 1vw, 18px);
  line-height: 1.55;
  color: var(--b-muted);
}
.brief__layout {
  display: grid;
  grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
  gap: clamp(20px, 2.4vw, 48px);
  align-items: start;
}

/* aside */
.brief__aside {
  position: sticky;
  top: 110px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.brief__progress {
  height: 6px;
  border-radius: 100px;
  background: rgba(15, 23, 42, 0.08);
  overflow: hidden;
}
.brief__progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--bc);
  transition: width 0.45s var(--ease, ease);
}
.brief__progress-meta {
  display: flex;
  justify-content: space-between;
  margin-top: -10px;
  font-size: 13px;
  color: var(--b-muted);
}
.brief__steps {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.brief__step-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--r-ctrl, 12px);
  font-size: 15px;
  color: var(--b-muted);
  cursor: default;
  transition: background 0.2s, color 0.2s;
}
.brief__step-link span {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--b-line);
  font-size: 13px;
  font-weight: 600;
  background: #fff;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.brief__step-link.is-reachable {
  cursor: pointer;
}
.brief__step-link.is-reachable:hover {
  background: var(--bc-soft);
}
.brief__step-link.is-done span {
  border-color: var(--bc);
  background: var(--bc);
  color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E");
  background-size: 60%;
  background-position: center;
  background-repeat: no-repeat;
}
.brief__step-link.is-current {
  background: #fff;
  color: #1c1c1c;
  font-weight: 600;
  box-shadow: var(--card-shadow, 0 10px 30px -20px rgba(15, 23, 42, 0.22));
}
.brief__step-link.is-current span {
  border-color: var(--bc);
  color: var(--bc);
  background-image: none;
}
.brief__help {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px;
  border-radius: var(--r-card, 16px);
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.07);
  font-size: 14px;
  color: var(--b-muted);
}
.brief__help b {
  color: #1c1c1c;
  font-size: 15px;
}
.brief__help-btn {
  align-self: flex-start;
  margin-top: 6px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--bc);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* main card */
.brief__main {
  min-width: 0;
}
.brief__restored {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  margin-bottom: 14px;
  padding: 12px 16px;
  border-radius: var(--r-ctrl, 12px);
  background: var(--bc-soft);
  font-size: 14px;
}
.brief__restored button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--bc);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}
.brief__form,
.brief__done {
  padding: clamp(22px, 2.6vw, 48px);
  border-radius: var(--r-card, 16px);
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.07);
  box-shadow: var(--card-shadow, 0 10px 30px -20px rgba(15, 23, 42, 0.22));
}
.brief__panel {
  animation: brief-in 0.35s var(--ease, ease);
}
@keyframes brief-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.brief__panel-head {
  margin-bottom: clamp(20px, 1.8vw, 32px);
}
.brief__panel-num {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--bc);
}
.brief__panel-title {
  margin: 0 0 6px;
  font-size: clamp(22px, 1.7vw, 32px);
  line-height: 1.2;
  font-weight: 700;
}
.brief__panel-lead {
  margin: 0;
  font-size: 15px;
  color: var(--b-muted);
}

/* fields */
.brief__field {
  margin-bottom: clamp(20px, 1.6vw, 28px);
}
.brief__fieldset {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}
.brief__label {
  display: block;
  margin-bottom: 10px;
  padding: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  color: #1c1c1c;
}
.brief__req {
  color: #e2483d;
}
.brief__note {
  margin: -4px 0 10px;
  font-size: 13px;
  color: var(--b-muted);
}
.brief__input {
  width: 100%;
  height: 50px;
  padding: 0 16px;
  border: 1px solid var(--b-line);
  border-radius: var(--r-ctrl, 12px);
  background: #f7f9fc;
  font: inherit;
  font-size: 15px;
  color: #1c1c1c;
  outline: none;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.brief__input::placeholder {
  color: #9aa3b0;
}
.brief__input:focus {
  border-color: var(--bc);
  background: #fff;
  box-shadow: 0 0 0 3px var(--bc-soft);
}
.brief__textarea {
  height: auto;
  min-height: 96px;
  padding: 13px 16px;
  line-height: 1.5;
  resize: vertical;
}
.brief__field.has-error .brief__input,
.brief__field.has-error .brief__card-body,
.brief__field.has-error .brief__chip span {
  border-color: #e2483d;
}
.brief__error {
  margin: 8px 0 0;
  font-size: 13px;
  color: #d03b31;
}

/* cards (site type) */
.brief__cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.brief__card,
.brief__chip {
  position: relative;
  cursor: pointer;
}
.brief__card input,
.brief__chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.brief__card-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  height: 100%;
  padding: 14px 16px 14px 44px;
  border: 1.5px solid var(--b-line);
  border-radius: var(--r-ctrl, 12px);
  background: #fff;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.brief__card-body::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 16px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--b-line);
  background: #fff;
  transition: border-color 0.2s, background 0.2s;
}
.brief__card-body b {
  font-size: 15px;
  font-weight: 600;
}
.brief__card-body small {
  font-size: 13px;
  line-height: 1.4;
  color: var(--b-muted);
}
.brief__card:hover .brief__card-body {
  border-color: rgba(var(--main-color-rgb, 59, 111, 216), 0.5);
}
.brief__card input:checked + .brief__card-body {
  border-color: var(--bc);
  background: var(--bc-soft);
}
.brief__card input:checked + .brief__card-body::before {
  border-color: var(--bc);
  background: var(--bc) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 62% no-repeat;
}
.brief__card input:focus-visible + .brief__card-body,
.brief__chip input:focus-visible + span {
  outline: 2px solid var(--bc);
  outline-offset: 2px;
}

/* chips */
.brief__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.brief__chip span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border: 1.5px solid var(--b-line);
  border-radius: 100px;
  background: #fff;
  font-size: 14px;
  line-height: 1.2;
  color: #1f2937;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.brief__chip:hover span {
  border-color: rgba(var(--main-color-rgb, 59, 111, 216), 0.5);
}
.brief__chip input:checked + span {
  border-color: var(--bc);
  background: var(--bc);
  color: #fff;
}
.brief__chip input[type="checkbox"]:checked + span::before {
  content: "";
  width: 12px;
  height: 12px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* links */
.brief__links {
  display: grid;
  gap: 8px;
}
.brief__link-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 8px;
}
.brief__add {
  margin-top: 10px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--bc);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

/* files */
.brief__drop {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 22px 16px;
  border: 1.5px dashed var(--b-line);
  border-radius: var(--r-ctrl, 12px);
  background: #f7f9fc;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.brief__drop:hover,
.brief__drop.is-over {
  border-color: var(--bc);
  background: var(--bc-soft);
}
.brief__drop input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.brief__drop-text {
  font-size: 14px;
  color: var(--b-muted);
}
.brief__drop-text b {
  color: var(--bc);
}
.brief__drop-list {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}
.brief__drop-list:empty {
  display: none;
}
.brief__file {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 6px 5px 12px;
  border-radius: 100px;
  background: #fff;
  border: 1px solid var(--b-line);
  font-size: 13px;
}
.brief__file button {
  width: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #eef1f5;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}

/* nav */
.brief__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: clamp(24px, 2vw, 36px);
  padding-top: clamp(20px, 1.6vw, 28px);
  border-top: 1px solid rgba(15, 23, 42, 0.07);
}
.brief__back {
  padding: 10px 0;
  border: 0;
  background: none;
  color: var(--b-muted);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.brief__back:hover {
  color: #1c1c1c;
}
.brief .brief__next.md-main-color-btn {
  width: auto;
  min-width: 180px;
  height: 52px;
  padding: 0 32px;
  justify-content: center;
  border: 0;
  cursor: pointer;
  text-decoration: none;
}
.brief .brief__next.md-main-color-btn span {
  font-size: 16px;
  font-weight: 600;
}
.brief .brief__next.md-main-color-btn:disabled {
  opacity: 0.7;
  cursor: progress;
}
.brief__agree {
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--b-muted);
  text-align: right;
}
.brief__agree span {
  color: var(--bc);
  text-decoration: underline;
  cursor: pointer;
}
.brief__send-error {
  margin: 16px 0 0;
  padding: 12px 16px;
  border-radius: var(--r-ctrl, 12px);
  background: #fdecea;
  color: #b3261e;
  font-size: 14px;
}
.brief__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* done */
.brief__done {
  text-align: left;
  outline: none;
}
.brief__done-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: #e8f6ee;
  color: #1f9d55;
}
.brief__done-icon svg {
  width: 28px;
  height: 28px;
}
.brief__done-list {
  display: grid;
  gap: 10px;
  margin: 16px 0 28px;
  padding-left: 22px;
  font-size: 15px;
  line-height: 1.5;
}
.brief__done-list li::marker {
  color: var(--bc);
  font-weight: 700;
}

@media (max-width: 1100px) {
  .brief__cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 900px) {
  .brief__title.md-main-title,
  .brief__sub {
    text-align: left !important;
  }
  .brief__layout {
    grid-template-columns: 1fr;
  }
  .brief__aside {
    position: sticky;
    top: 68px;
    z-index: 5;
    gap: 14px;
    margin: 0 -16px;
    padding: 12px 16px;
    background: rgba(245, 247, 250, 0.96);
    -webkit-backdrop-filter: blur(6px);
            backdrop-filter: blur(6px);
  }
  .brief__progress-meta {
    margin-top: -6px;
  }
  .brief__steps,
  .brief__help {
    display: none;
  }
}
@media (max-width: 600px) {
  .brief__cards {
    grid-template-columns: 1fr;
  }
  .brief__link-row {
    grid-template-columns: 1fr;
  }
  .brief__nav {
    flex-direction: row;
  }
  .brief .brief__next.md-main-color-btn {
    flex: 1;
    min-width: 0;
  }
  .brief__agree {
    text-align: left;
  }
}
@media (prefers-reduced-motion: reduce) {
  .brief__panel {
    animation: none;
  }
}
