@font-face {
  font-family: "League Gothic";
  src: url("fonts/LeagueGothic-Regular-VariableFont_wdth.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --ew-paper: #fbf8f1;
  --ew-paper-deep: #efe8da;
  --ew-ink: #10100f;
  --ew-muted: #5f5a52;
  --ew-line: rgba(16, 16, 15, 0.16);
  --ew-accent: #e65f1f;
  --ew-accent-dark: #b94314;
  --ew-max: 1120px;
}

.ew-page {
  position: relative;
  color: var(--ew-ink);
  background-color: var(--ew-paper);
  background:
    linear-gradient(rgba(251, 248, 241, 0.6), rgba(251, 248, 241, 0.6)),
    url("assets/EndlessWand-768.jpg"),
    var(--ew-paper);
  background-repeat: repeat;
  background-size: 768px 768px;
}

.ew-page main {
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.ew-shell {
  width: min(100% - 32px, var(--ew-max));
  margin-inline: auto;
}

.ew-hero {
  min-height: calc(100svh - 86px);
  display: grid;
  align-items: center;
  padding: clamp(64px, 10vw, 128px) 0 clamp(56px, 8vw, 96px);
  border-bottom: 1px solid var(--ew-line);
}

.ew-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.7fr);
  gap: clamp(40px, 7vw, 96px);
  align-items: center;
}

.ew-save-hero {
  min-height: auto;
  align-items: start;
  padding: clamp(4px, 1vw, 12px) 0 clamp(42px, 6vw, 78px);
}

.ew-save-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.36fr);
  gap: clamp(36px, 7vw, 92px);
  align-items: start;
}

.ew-save-image {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 420px;
}

.ew-save-image picture {
  display: block;
  max-width: 100%;
}

.ew-save-image img {
  width: min(27vw, 330px);
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 22px 28px rgba(16, 16, 15, 0.14));
}

.ew-call-hero {
  min-height: auto;
  align-items: start;
  padding: clamp(4px, 1vw, 12px) 0 clamp(36px, 5vw, 64px);
}

.ew-call-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.72fr);
  gap: clamp(30px, 5vw, 68px);
  align-items: start;
}

.ew-kicker,
.ew-section-label {
  margin: 0 0 14px;
  color: var(--ew-accent);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
}

.ew-hero h1 {
  max-width: 9ch;
  margin: 0;
  color: var(--ew-ink);
  font-family: "League Gothic", Impact, "Arial Narrow", sans-serif;
  font-size: clamp(5.6rem, 17vw, 13rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.78;
  text-transform: uppercase;
}

.ew-call-hero h1 {
  max-width: 8ch;
  font-size: clamp(4.8rem, 11.5vw, 9.4rem);
}

.ew-subtitle {
  margin: clamp(24px, 4vw, 42px) 0 0;
  color: var(--ew-ink);
  font-size: clamp(1.15rem, 2.1vw, 1.75rem);
  font-weight: 650;
}

.ew-meta {
  margin: 12px 0 0;
  color: var(--ew-accent);
  font-size: clamp(1rem, 1.5vw, 1.14rem);
  font-weight: 850;
  line-height: 1.45;
}

.ew-save-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1px;
  max-width: 860px;
  margin: clamp(30px, 4vw, 44px) 0 0;
  background: var(--ew-line);
  border: 1px solid var(--ew-line);
}

.ew-save-facts div {
  padding: 20px;
  background: rgba(251, 248, 241, 0.78);
}

.ew-save-facts dt {
  margin-bottom: 10px;
  color: var(--ew-accent);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  line-height: 1.2;
  text-transform: uppercase;
}

.ew-save-facts dd {
  margin: 0;
  color: var(--ew-ink);
  font-size: clamp(1rem, 1.6vw, 1.22rem);
  font-weight: 800;
  line-height: 1.35;
}

.ew-save-text {
  max-width: 780px;
  margin-top: clamp(28px, 4vw, 42px);
  color: var(--ew-muted);
  font-size: clamp(1.02rem, 1.45vw, 1.16rem);
  line-height: 1.75;
}

.ew-save-text p {
  margin: 0;
}

.ew-save-text p + p {
  margin-top: 16px;
}

.ew-deadline {
  max-width: 620px;
  margin: clamp(28px, 4vw, 46px) 0 0;
  color: var(--ew-accent);
  font-family: "League Gothic", Impact, "Arial Narrow", sans-serif;
  font-size: clamp(2.8rem, 6vw, 5.4rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.88;
  text-transform: uppercase;
}

.ew-intro {
  max-width: 620px;
  margin: 18px 0 0;
  color: var(--ew-muted);
  font-size: clamp(1.03rem, 1.7vw, 1.22rem);
  line-height: 1.75;
}

.ew-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.ew-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid var(--ew-ink);
  border-radius: 2px;
  color: var(--ew-ink);
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.ew-button:visited {
  color: inherit;
}

.ew-button:hover,
.ew-button:focus-visible {
  text-decoration: none;
}

.ew-button-primary {
  border-color: var(--ew-accent);
  color: #fff;
  background: var(--ew-accent);
}

.ew-button-primary:visited {
  color: #fff;
}

.ew-button-primary:hover,
.ew-button-primary:focus-visible {
  border-color: var(--ew-accent-dark);
  background: var(--ew-accent-dark);
}

.ew-button-secondary {
  background: transparent;
}

.ew-button-secondary:hover,
.ew-button-secondary:focus-visible {
  background: rgba(16, 16, 15, 0.06);
}

.ew-hero-mark {
  position: relative;
  min-height: 430px;
  border-left: 1px solid var(--ew-line);
}

.ew-hero-mark img {
  position: absolute;
  top: 50%;
  left: 47%;
  width: min(30vw, 250px);
  height: min(62vh, 530px);
  object-fit: contain;
  opacity: 0.95;
  transform: translate(-50%, -50%);
}

.ew-section {
  padding: clamp(64px, 9vw, 112px) 0;
  border-bottom: 1px solid var(--ew-line);
}

.ew-section h2 {
  max-width: 720px;
  margin: 0;
  color: var(--ew-ink);
  font-family: "League Gothic", Impact, "Arial Narrow", sans-serif;
  font-size: clamp(3.3rem, 7vw, 6rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.9;
  text-transform: uppercase;
}

.ew-section-intro {
  max-width: 760px;
  margin: 22px 0 0;
  color: var(--ew-muted);
  font-size: clamp(1.02rem, 1.45vw, 1.16rem);
  line-height: 1.75;
}

.ew-section-note {
  max-width: 760px;
  margin: 18px 0 0;
  padding-left: 18px;
  border-left: 4px solid var(--ew-accent);
  color: var(--ew-ink);
  font-size: clamp(1rem, 1.35vw, 1.08rem);
  font-weight: 650;
  line-height: 1.7;
}

.ew-call-frame {
  position: relative;
  min-height: clamp(500px, 70vh, 670px);
  display: grid;
  place-items: center;
  isolation: isolate;
}

.ew-call-frame::before,
.ew-call-frame::after {
  position: absolute;
  z-index: 0;
  content: "";
  background: var(--ew-accent);
}

.ew-call-frame::before {
  top: 8%;
  right: 15%;
  width: min(11vw, 108px);
  height: min(20vh, 178px);
  background: #ff9a3d;
  opacity: 0.72;
}

.ew-call-frame::after {
  left: 13%;
  bottom: 7%;
  width: min(14vw, 138px);
  height: min(16vh, 138px);
  background: #f2c14e;
  opacity: 0.66;
}

.ew-call-frame img {
  position: absolute;
  inset: 50% auto auto 50%;
  z-index: 1;
  width: min(34vw, 330px);
  height: min(72vh, 640px);
  object-fit: contain;
  transform: translate(-50%, -50%);
}

.ew-call-frame p {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  width: min(76%, 340px);
  margin: 0;
  color: var(--ew-ink);
  font-family: "League Gothic", Impact, "Arial Narrow", sans-serif;
  font-size: clamp(5rem, 10vw, 9rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.78;
  text-align: center;
  text-transform: uppercase;
  transform: translate(-50%, -50%);
}

.ew-call-frame span {
  display: block;
}

.ew-data {
  padding: clamp(44px, 6vw, 72px) 0;
  background: rgba(255, 255, 255, 0.28);
}

.ew-data h2 {
  margin-bottom: 28px;
  font-size: clamp(1.8rem, 3.4vw, 3rem);
}

.ew-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  border-top: 1px solid var(--ew-line);
  border-left: 1px solid var(--ew-line);
}

.ew-facts div {
  min-height: 150px;
  padding: 22px;
  border-right: 1px solid var(--ew-line);
  border-bottom: 1px solid var(--ew-line);
}

.ew-facts dt {
  margin-bottom: 18px;
  color: var(--ew-muted);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ew-facts dd {
  margin: 0;
  color: var(--ew-ink);
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
  font-weight: 700;
  line-height: 1.35;
}

.ew-text-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.65fr) minmax(0, 1fr);
  gap: clamp(32px, 7vw, 92px);
}

.ew-copy {
  color: var(--ew-muted);
  font-size: clamp(1.02rem, 1.5vw, 1.18rem);
  line-height: 1.8;
}

.ew-copy p {
  margin: 0;
}

.ew-copy p + p {
  margin-top: 18px;
}

.ew-copy .ew-actions {
  margin-top: 28px;
}

.ew-participation {
  background: linear-gradient(180deg, rgba(235, 225, 209, 0.58), rgba(246, 241, 232, 0.1));
}

.ew-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 34px;
  background: var(--ew-line);
  border: 1px solid var(--ew-line);
}

.ew-card {
  min-height: 270px;
  padding: clamp(24px, 4vw, 38px);
  background: var(--ew-paper);
}

.ew-number {
  display: block;
  margin-bottom: 34px;
  color: var(--ew-accent);
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.ew-card h3 {
  margin: 0 0 18px;
  color: var(--ew-ink);
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  line-height: 1.2;
}

.ew-card p {
  margin: 0;
  color: var(--ew-muted);
  line-height: 1.7;
}

.ew-submit-card-grid .ew-card {
  display: flex;
  flex-direction: column;
}

.ew-card-actions {
  display: grid;
  gap: 10px;
  margin-top: auto;
  padding-top: 28px;
}

.ew-card-actions .ew-button {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  font-size: 0.94rem;
}

.ew-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ew-list {
  margin-top: 20px;
}

.ew-list li {
  position: relative;
  padding-left: 28px;
}

.ew-list li::before {
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 12px;
  height: 2px;
  content: "";
  background: var(--ew-accent);
}

.ew-quiet {
  background: rgba(255, 255, 255, 0.22);
}

.ew-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 34px 0 0;
  padding: 0;
  border-top: 1px solid var(--ew-line);
  border-left: 1px solid var(--ew-line);
  list-style: none;
  counter-reset: ew-step;
}

.ew-steps li {
  position: relative;
  min-height: 210px;
  padding: 60px 22px 24px;
  border-right: 1px solid var(--ew-line);
  border-bottom: 1px solid var(--ew-line);
  counter-increment: ew-step;
}

.ew-steps li::before {
  position: absolute;
  top: 20px;
  left: 22px;
  color: var(--ew-accent);
  content: counter(ew-step, decimal-leading-zero);
  font-weight: 900;
  letter-spacing: 0.12em;
}

.ew-steps span {
  display: block;
  color: var(--ew-ink);
  font-size: 1.18rem;
  font-weight: 800;
}

.ew-steps p {
  margin: 12px 0 0;
  color: var(--ew-muted);
  line-height: 1.65;
}

.ew-contact {
  border-bottom: 0;
}

.ew-contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: end;
  padding: clamp(28px, 5vw, 54px);
  border: 1px solid var(--ew-line);
  background: rgba(255, 255, 255, 0.28);
}

.ew-contact-panel p {
  max-width: 620px;
  margin: 18px 0 0;
  color: var(--ew-muted);
  line-height: 1.7;
}

.ew-address {
  margin-top: 18px;
  color: var(--ew-muted);
  font-style: normal;
  line-height: 1.8;
}

.ew-address a,
.ew-copy a,
.ew-footer a {
  color: var(--ew-ink);
  font-weight: 800;
  text-decoration-color: rgba(230, 95, 31, 0.55);
  text-underline-offset: 0.18em;
}

.ew-contact-panel .ew-actions {
  justify-content: flex-end;
  margin-top: 0;
}

.ew-footer {
  position: relative;
  z-index: 1;
  padding: 28px 0 42px;
  border-top: 1px solid var(--ew-line);
}

@media (max-width: 900px) {
  .ew-hero {
    min-height: auto;
  }

  .ew-hero-grid,
  .ew-save-layout,
  .ew-call-hero-grid,
  .ew-text-grid,
  .ew-contact-panel {
    grid-template-columns: 1fr;
  }

  .ew-call-frame {
    min-height: 430px;
  }

  .ew-save-image {
    min-height: auto;
    justify-content: flex-start;
  }

  .ew-save-image img {
    width: min(58vw, 280px);
  }

  .ew-call-frame img {
    width: min(64vw, 270px);
    height: 410px;
  }

  .ew-call-frame p {
    width: min(70%, 290px);
    font-size: clamp(4.6rem, 18vw, 7rem);
  }

  .ew-hero-mark {
    min-height: 280px;
    border-top: 1px solid var(--ew-line);
    border-left: 0;
  }

  .ew-facts,
  .ew-save-facts,
  .ew-card-grid,
  .ew-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ew-contact-panel .ew-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  .ew-shell {
    width: min(100% - 24px, var(--ew-max));
  }

  .ew-hero h1 {
    font-size: clamp(4.5rem, 24vw, 7rem);
  }

  .ew-call-hero h1 {
    font-size: clamp(4.2rem, 21vw, 6.2rem);
  }

  .ew-actions,
  .ew-button {
    width: 100%;
  }

  .ew-facts,
  .ew-save-facts,
  .ew-card-grid,
  .ew-steps {
    grid-template-columns: 1fr;
  }

  .ew-facts div,
  .ew-card,
  .ew-steps li {
    min-height: auto;
  }

  .ew-hero-mark {
    min-height: 300px;
  }

  .ew-hero-mark img {
    width: 145px;
    height: 275px;
  }

  .ew-call-frame {
    min-height: 360px;
  }

  .ew-call-frame::before {
    right: 20%;
    width: 64px;
    height: 130px;
  }

  .ew-call-frame::after {
    left: 18%;
    width: 92px;
    height: 82px;
  }

  .ew-call-frame img {
    width: 210px;
    height: 330px;
  }

  .ew-call-frame p {
    width: 230px;
    font-size: clamp(4.2rem, 19vw, 5.7rem);
  }
}
