.demo-page {
  padding-block: clamp(48px, 7vw, 102px) clamp(64px, 9vw, 132px);
}
.demo-product { display: flex; align-items: center; gap: .65rem; color: #38293d; font-size: clamp(1.15rem, 1.5vw, 1.4rem); line-height: 1; font-weight: 550; letter-spacing: -.045em; }
.demo-product img { width: clamp(2.6rem, 4vw, 3.4rem); height: auto; }
.demo-layout {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: start;
  gap: clamp(40px, 7vw, 115px);
}
.demo-intro h1 {
  margin: .23em 0 .32em;
  font-size: clamp(3.25rem, 5.5vw, 5.7rem);
  line-height: 1.03;
  letter-spacing: -.055em;
  font-weight: 500;
}
.demo-lead {
  max-width: 33ch;
  margin: 0;
  color: #5d5661;
  font-size: clamp(1.13rem, 1.55vw, 1.38rem);
  line-height: 1.5;
}
.demo-agenda {
  margin-top: clamp(32px, 5.2vw, 75px);
  padding-top: 25px;
  border-top: 1px solid #d8d0d8;
  max-width: 400px;
}
.demo-agenda h2 {
  margin: 0 0 18px;
  font-size: 1.05rem;
  letter-spacing: -.015em;
}
.demo-agenda ul { margin: 0; padding: 0; list-style: none; }
.demo-agenda li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 12px;
  margin: 12px 0;
  color: #5d5661;
  font-size: .98rem;
  line-height: 1.5;
}
.demo-agenda li::before { content: "↗"; color: #692e77; }
.demo-panel {
  min-width: 0;
  border: 1px solid #ded7dd;
  background: #fffefd;
  border-radius: 16px;
  padding: clamp(23px, 3.5vw, 51px);
}
.demo-panel [hidden] { display: none !important; }
.demo-panel-heading { margin-bottom: 25px; }
.demo-panel-heading h2, .demo-result h2 {
  margin: 0;
  font-size: clamp(1.65rem, 2.5vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -.04em;
  font-weight: 500;
}
.demo-panel-heading p, .demo-result p {
  color: #635b65;
  font-size: 1rem;
  line-height: 1.5;
  margin: 8px 0 0;
}
.demo-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px 15px; }
.demo-wide { grid-column: 1 / -1; }
.demo-field label { display: block; margin-bottom: 6px; color: #392e3a; font-size: .91rem; font-weight: 600; }
.demo-field label span { color: #6e636e; font-size: .86em; font-weight: 400; }
.demo-field input, .demo-field select, .demo-field textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 44px;
  border: 1px solid #cfc5ce;
  border-radius: 6px;
  padding: .59em .75em;
  color: #322637;
  background: #fffefd;
  font: inherit;
  font-size: 1rem;
  line-height: 1.4;
}
.demo-field textarea { display: block; resize: vertical; min-height: 85px; }
.demo-field :is(input, select, textarea):focus-visible { outline: 2px solid #713b80; outline-offset: 2px; }
.demo-field [aria-invalid] { border-color: #a1323a; }
.demo-error, .demo-status { margin: 6px 0 0; color: #97343f; font-size: .88rem; }
.demo-status { margin-block: 12px; }
.demo-trap { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); }
.demo-note { margin: 18px 0 13px; font-size: .84rem; line-height: 1.5; color: #6d626e; }
.demo-submit { cursor: pointer; }
.demo-fields ~ .demo-submit { margin-top: 15px; }
.demo-note ~ .demo-submit { margin-top: 0; }
.demo-submit:disabled { opacity: .72; cursor: wait; }
.demo-result { padding-block: clamp(16px, 4vw, 50px); }
.demo-result p { max-width: 35ch; margin-bottom: 25px; }
.demo-check {
  display: inline-grid;
  place-items: center;
  margin-bottom: 25px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #f0e7f3;
  color: #692e77;
  font-size: 1.5rem;
}
@media (max-width: 800px) {
  .demo-layout { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .demo-agenda { margin-top: 23px; max-width: 100%; }
  .demo-intro h1 { max-width: 12ch; }
  .demo-lead { max-width: 43ch; }
}
@media (max-width: 480px) {
  .demo-fields { grid-template-columns: minmax(0, 1fr); }
  .demo-submit { width: 100%; justify-content: center; }
}
