.web-project {
  --wp-surface: #0a1b2d;
  --wp-surface-strong: #0d233a;
  --wp-line: rgba(190, 215, 242, 0.22);
  --wp-line-strong: rgba(99, 214, 255, 0.52);
  --wp-text: #f3f7fd;
  --wp-muted: #aebdd0;
  --wp-blue: #3b91f6;
  --wp-blue-soft: rgba(59, 145, 246, 0.14);
  --wp-orange: #ffad42;
  padding-bottom: 7rem;
}

.web-project [hidden] {
  display: none !important;
}

.web-project-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(290px, 0.65fr);
  gap: clamp(2rem, 6vw, 6rem);
  padding-block: clamp(3rem, 8vw, 6.5rem) clamp(2.5rem, 5vw, 4.5rem);
}

.web-project-hero h1 {
  max-width: 860px;
  margin: 0;
  color: var(--wp-text);
  font-size: clamp(2.45rem, 5.5vw, 5.35rem);
  line-height: 0.99;
  letter-spacing: -0.055em;
}

.web-project-hero > div > p:last-child {
  max-width: 760px;
  margin: 1.5rem 0 0;
  color: var(--wp-muted);
  font-size: clamp(1.02rem, 1.8vw, 1.22rem);
}

.web-project-hero aside {
  align-self: end;
  border-top: 1px solid var(--wp-line);
  padding-top: 1.1rem;
}

.web-project-hero aside strong {
  color: var(--wp-text);
}

.web-project-hero aside ol {
  display: grid;
  gap: 0.55rem;
  margin: 0.9rem 0 1rem;
  padding-left: 1.3rem;
  color: var(--wp-muted);
}

.web-project-hero aside span {
  display: inline-flex;
  border-left: 2px solid var(--wp-orange);
  padding-left: 0.75rem;
  color: #dbe7f6;
  font-size: 0.9rem;
}

.web-project-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  align-items: start;
  gap: clamp(1.5rem, 4vw, 4rem);
}

.web-project-progress {
  position: sticky;
  top: 100px;
  border-top: 1px solid var(--wp-line);
  padding-top: 1rem;
}

.web-project-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--wp-text);
}

.web-project-progress-head span {
  font-weight: 700;
}

.web-project-progress-head strong {
  color: #84cfff;
}

.web-project-progress-track {
  height: 4px;
  margin-top: 0.8rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
}

.web-project-progress-track span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--wp-blue), #63d6ff);
  transition: width 0.25s ease;
}

.web-project-progress p {
  margin: 0.8rem 0 0;
  color: var(--wp-muted);
  font-size: 0.8rem;
  line-height: 1.45;
}

.web-project-card {
  min-width: 0;
  border: 1px solid var(--wp-line);
  background: linear-gradient(180deg, rgba(13, 35, 58, 0.98), rgba(8, 25, 43, 0.98));
  padding: clamp(1.25rem, 4vw, 3.2rem);
}

.web-project-card > p {
  color: var(--wp-muted);
}

.web-project-card-head {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: start;
  gap: 1rem;
  margin-bottom: 1.6rem;
}

.web-project-card-head > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 32px;
  border: 1px solid var(--wp-line);
  color: #84cfff;
  font-size: 0.78rem;
  font-weight: 800;
}

.web-project-card-head p,
.web-project-card-head h2 {
  margin: 0;
}

.web-project-card-head p {
  color: #84cfff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.web-project-card-head h2 {
  max-width: 760px;
  color: var(--wp-text);
  font-size: clamp(1.55rem, 3vw, 2.45rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.web-project-email-form,
.web-project-code-form {
  display: grid;
  gap: 0.55rem;
  margin-top: 1.5rem;
}

.web-project-email-form > div,
.web-project-code-form > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.7rem;
}

.web-project-code-form > p {
  margin: 0;
  color: var(--wp-muted);
}

.web-project label,
.web-project legend {
  color: #dce7f4;
  font-weight: 700;
}

.web-project label {
  display: grid;
  gap: 0.45rem;
}

.web-project input,
.web-project textarea,
.web-project select {
  width: 100%;
  border: 1px solid var(--wp-line);
  border-radius: 0;
  background: #071522;
  padding: 0.82rem 0.9rem;
  color: var(--wp-text);
}

.web-project textarea {
  min-height: 120px;
  resize: vertical;
}

.web-project input::placeholder,
.web-project textarea::placeholder {
  color: #718298;
}

.web-project input:focus,
.web-project textarea:focus,
.web-project select:focus {
  border-color: var(--wp-line-strong);
  outline: 2px solid rgba(59, 145, 246, 0.2);
  outline-offset: 0;
}

.web-project .is-invalid,
.web-project-question.is-invalid {
  border-color: #ff7b8d;
}

.web-project-question.is-invalid {
  padding: 0.9rem;
}

.web-project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.web-project-step {
  display: grid;
  gap: 1.35rem;
}

.web-project-question {
  min-width: 0;
  margin: 0;
  border: 0;
  padding: 0;
}

.web-project-question legend {
  margin-bottom: 0.65rem;
}

.web-project-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.web-project-choice-grid label {
  position: relative;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  gap: 0.7rem;
  min-height: 62px;
  border: 1px solid var(--wp-line);
  padding: 0.85rem;
  background: rgba(255, 255, 255, 0.018);
  color: var(--wp-muted);
  cursor: pointer;
}

.web-project-choice-grid label:hover {
  border-color: rgba(99, 214, 255, 0.4);
}

.web-project-choice-grid label:has(input:checked) {
  border-color: var(--wp-blue);
  background: var(--wp-blue-soft);
  color: var(--wp-text);
}

.web-project-choice-grid input,
.web-project-check-line input {
  width: 18px;
  height: 18px;
  margin: 0.18rem 0 0;
  accent-color: var(--wp-blue);
}

.web-project-button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--wp-blue);
  border-radius: 0;
  background: var(--wp-blue);
  padding: 0.7rem 1.15rem;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.web-project-button:hover {
  border-color: #63a7f9;
  background: #4a9bf7;
}

.web-project-button:disabled {
  cursor: wait;
  opacity: 0.58;
}

.web-project-button-secondary {
  border-color: var(--wp-line);
  background: transparent;
  color: var(--wp-text);
}

.web-project-button-secondary:hover {
  border-color: var(--wp-line-strong);
  background: rgba(255, 255, 255, 0.04);
}

.web-project-text-button {
  justify-self: start;
  border: 0;
  background: transparent;
  padding: 0.2rem 0;
  color: #84cfff;
  cursor: pointer;
}

.web-project-preview-button {
  margin-top: 1rem;
}

.web-project-preview-note,
.web-project-final-note {
  display: grid;
  gap: 0.25rem;
  border-left: 2px solid var(--wp-orange);
  margin-top: 1.2rem;
  padding: 0.7rem 0 0.7rem 0.9rem;
  color: var(--wp-muted);
  background: rgba(255, 173, 66, 0.05);
}

.web-project-preview-note strong,
.web-project-final-note strong {
  color: var(--wp-text);
}

.web-project-message {
  border: 1px solid rgba(255, 123, 141, 0.5);
  margin-top: 1rem;
  padding: 0.8rem 0.9rem;
  color: #ffdbe1;
  background: rgba(255, 123, 141, 0.08);
}

.web-project-message.is-success {
  border-color: rgba(84, 213, 154, 0.52);
  color: #c8f5df;
  background: rgba(84, 213, 154, 0.08);
}

.web-project-actions {
  position: sticky;
  bottom: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  border-top: 1px solid var(--wp-line);
  margin: 2rem calc(clamp(1.25rem, 4vw, 3.2rem) * -1) calc(clamp(1.25rem, 4vw, 3.2rem) * -1);
  padding: 1rem clamp(1.25rem, 4vw, 3.2rem);
  background: rgba(7, 21, 34, 0.97);
}

.web-project-actions > span {
  color: var(--wp-muted);
  text-align: center;
  font-size: 0.82rem;
}

.web-project-upload-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.web-project-upload {
  border: 1px dashed rgba(99, 214, 255, 0.38);
  padding: 1rem;
  background: rgba(99, 214, 255, 0.035);
}

.web-project-upload small {
  color: var(--wp-muted);
  font-weight: 400;
}

.web-project-upload input {
  border: 0;
  padding: 0.55rem 0 0;
  background: transparent;
}

.web-project-image-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.8rem;
}

.web-project-image-item {
  position: relative;
  border: 1px solid var(--wp-line);
  background: #071522;
}

.web-project-image-item img {
  width: 100%;
  height: 150px;
  object-fit: contain;
  background: #06111c;
}

.web-project-image-item div {
  display: grid;
  gap: 0.15rem;
  padding: 0.65rem 0.75rem;
}

.web-project-image-item strong {
  color: var(--wp-text);
  font-size: 0.84rem;
}

.web-project-image-item span {
  color: var(--wp-muted);
  font-size: 0.75rem;
}

.web-project-image-item button {
  position: absolute;
  top: 0.45rem;
  right: 0.45rem;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(5, 13, 24, 0.88);
  color: #fff;
  cursor: pointer;
}

.web-project-check-line {
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  gap: 0.75rem;
  border-top: 1px solid var(--wp-line);
  padding-top: 1rem;
  color: var(--wp-muted);
}

.web-project-review-list {
  display: grid;
  gap: 1rem;
}

.web-project-review-section {
  border-top: 1px solid var(--wp-line);
  padding-top: 1rem;
}

.web-project-review-section h3 {
  margin: 0 0 0.7rem;
  color: var(--wp-text);
  font-size: 1rem;
}

.web-project-review-section dl {
  display: grid;
  grid-template-columns: minmax(180px, 0.65fr) minmax(0, 1.35fr);
  gap: 0.55rem 1rem;
  margin: 0;
}

.web-project-review-section dt {
  color: var(--wp-muted);
  font-size: 0.82rem;
}

.web-project-review-section dd {
  margin: 0;
  color: var(--wp-text);
  overflow-wrap: anywhere;
}

.web-project-success {
  text-align: center;
}

.web-project-success-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(84, 213, 154, 0.62);
  margin-bottom: 1rem;
  color: #7ae2b2;
  font-size: 1.8rem;
}

.web-project-success h2 {
  max-width: 780px;
  margin: 0 auto;
  color: var(--wp-text);
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.web-project-success p:not(.section-kicker) {
  max-width: 720px;
  margin: 1rem auto 1.6rem;
  color: var(--wp-muted);
}

.web-project-success .web-project-button {
  justify-self: center;
}

@media (max-width: 900px) {
  .web-project-hero,
  .web-project-layout {
    grid-template-columns: 1fr;
  }

  .web-project-progress {
    position: static;
  }

  .web-project-layout {
    gap: 1rem;
  }
}

@media (max-width: 680px) {
  .web-project-hero {
    gap: 2rem;
    padding-top: 2.8rem;
  }

  .web-project-grid,
  .web-project-choice-grid,
  .web-project-upload-grid {
    grid-template-columns: 1fr;
  }

  .web-project-email-form > div,
  .web-project-code-form > div {
    grid-template-columns: 1fr;
  }

  .web-project-actions {
    grid-template-columns: 1fr 1fr;
  }

  .web-project-actions > span {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .web-project-review-section dl {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }

  .web-project-review-section dd {
    margin-bottom: 0.6rem;
  }
}
