.page {
  max-width: 560px;
  margin: 0 auto;
  padding: 12px 20px 64px;
}

.topnav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 4px 0 8px;
}

.home-btn,
.bottom-home a {
  font-family: "Manrope", "Manrope Medium", sans-serif;
  font-size: 16px;
  color: #3a2714;
  text-decoration: none;
}

.home-mark {
  font-family: "Lemon Milk Pro", "Montserrat Black", sans-serif;
  font-size: 14px;
  color: #4eb6ea;
  text-decoration: none;
  text-shadow: 0.035em 0.035em 0.09em rgba(0, 0, 0, 0.28);
}

.mark-link {
  text-decoration: none;
  color: inherit;
}

.form-card,
.way {
  margin-top: 18px;
  background: #f7f1e6;
  background-image: repeating-linear-gradient(
    180deg,
    transparent,
    transparent 15px,
    rgba(110, 82, 54, 0.13) 16px
  );
  border: 1px solid rgba(78, 54, 34, 0.18);
  box-shadow: 0 4px 12px rgba(62, 42, 24, 0.05);
  padding: 18px 16px 16px;
}

.form-card label {
  display: block;
  margin: 0 0 14px;
  font-family: "Manrope Light", sans-serif;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: #145a86;
}

.form-card input,
.form-card select {
  display: block;
  width: 100%;
  margin-top: 6px;
  font-family: "Manrope Light", sans-serif;
  font-size: 16px;
  color: #145a86;
  padding: 10px 12px;
  border: 1px solid rgba(78, 54, 34, 0.22);
  background: #fffdf8;
}

.row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.hint {
  position: static;
  left: auto;
  right: auto;
  bottom: auto;
  z-index: auto;
  margin: 0 0 14px;
  text-align: left;
  font-family: "Manrope Light", sans-serif;
  font-size: 14px;
  letter-spacing: normal;
  line-height: 1.45;
  color: #145a86;
  transition: none;
}

.submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-family: "Manrope", "Manrope Medium", sans-serif;
  font-size: 18px;
  color: #3a2714;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  position: relative;
  z-index: 1;
}

.submit:disabled {
  opacity: 0.55;
  cursor: wait;
}

.submit svg {
  width: 28px;
  height: 20px;
  stroke: #3a2714;
  fill: none;
  stroke-width: 2.2;
}

.done {
  margin-top: 16px;
  font-family: "Manrope Light", sans-serif;
  font-size: 15px;
  line-height: 1.45;
  color: #145a86;
}

.done a {
  color: #3a2714;
}

.done[hidden] {
  display: none;
}

.bottom-home {
  margin-top: 28px;
  text-align: center;
}

.ways {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.way {
  display: block;
  text-decoration: none;
}

.way h2 {
  margin: 0 0 6px;
  font-family: "Lemon Milk Pro", "Montserrat Black", sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #4eb6ea;
  text-shadow: 0.035em 0.035em 0.09em rgba(0, 0, 0, 0.35);
}

.way p {
  margin: 0;
  font-family: "Manrope Light", sans-serif;
  font-size: 15px;
  line-height: 1.45;
  color: #145a86;
}

.press {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Manrope", "Manrope Medium", sans-serif;
  font-size: 18px;
  color: #3a2714;
}

.press svg {
  width: 28px;
  height: 20px;
  stroke: #3a2714;
  fill: none;
  stroke-width: 2.2;
}


.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Планшет */
@media (max-width: 900px) {
  .page {
    padding: 10px 16px 56px;
  }

  .way h2 {
    font-size: 20px;
  }
}

/* Телефон */
@media (max-width: 600px) {
  .page {
    max-width: 100%;
    padding: 8px 14px max(48px, env(safe-area-inset-bottom, 0px) + 40px);
  }

  .topnav {
    gap: 8px;
    margin: 2px 0 6px;
  }

  .home-btn,
  .bottom-home a {
    font-size: 15px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .row-2 {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .form-card,
  .way {
    margin-top: 14px;
    padding: 16px 14px 14px;
  }

  .form-card input,
  .form-card select {
    font-size: 16px;
    min-height: 46px;
  }

  .submit,
  .press {
    min-height: 48px;
    font-size: 17px;
  }

  .way h2 {
    font-size: 19px;
  }

  .way p {
    font-size: 14px;
  }
}
