.page-contact {
  background: #000;
  color: #fff;
  --c-gap: clamp(64px, 8vw, 120px);
}
.contact-page {
  position: relative;
  min-height: 100svh;
  padding: 242px 0 120px;
}
.page-contact .w-intro {
  position: absolute;
}
.c-contacts {
  position: absolute;
  left: var(--rc, 66.667vw);
  right: 24px;
  top: 240px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 11px;
  line-height: 12px;
  letter-spacing: .01em;
}
.c-lock {
  display: inline-flex;
  vertical-align: -1px;
}
.c-lock .ds-lock {
  margin-left: 5px;
}
.c-form {
  margin-left: 24px;
  width: min(686px, calc(var(--rc, 66.667vw) - 24px - var(--c-gap)));
  font-size: 11px;
  line-height: 12px;
  letter-spacing: .01em;
}
.c-step {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 245px;
  padding: 16px 0 32px;
  border: 0;
  margin: 0;
}
.c-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: rgba(255, 255, 255, .3);
  transform-origin: 0 50%;
}
.c-label {
  margin: 0;
  padding: 0 0 0 4px;
  line-height: 12px;
}
.c-in {
  display: inline-block;
}
.c-fields {
  display: grid;
  gap: 8px;
}
.c-field,
.c-input,
.c-input input {
  height: 12px;
  line-height: 12px;
}
.c-opt {
  min-height: 12px;
  line-height: 12px;
}
.c-field--opt {
  height: auto;
}
.c-field {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  column-gap: 8px;
}
.c-input {
  display: inline-flex;
  align-items: baseline;
  cursor: text;
}
.c-br {
  flex: 0 0 auto;
  opacity: .6;
  transition: opacity .2s var(--ease-out);
}
.c-input input {
  font: inherit;
  letter-spacing: inherit;
  color: #fff;
  background: none;
  border: 0;
  padding: 0 0 0 3px;
  margin: 0;
  width: 12ch;
  min-width: 4px;
  max-width: 225px;
  outline: none;
  border-radius: 0;
  caret-color: #fff;
}
.c-input input::placeholder {
  color: #fff;
  opacity: .6;
}
.c-input:hover .c-br,
.c-input:focus-within .c-br,
.c-input.has-value .c-br {
  opacity: 1;
}
.c-input:hover input::placeholder {
  opacity: 1;
}
.c-input:focus-within input::placeholder {
  opacity: .35;
}
.c-field.is-invalid .c-br,
.c-field.is-invalid input::placeholder {
  color: #ff5a3c;
  opacity: 1;
}
.c-err {
  color: #ff5a3c;
  font-size: 11px;
}
.c-err:empty {
  display: none;
}
.c-field--opt {
  display: block;
}
.c-field--opt .c-err {
  display: block;
  padding-left: 6px;
  margin-top: 4px;
}
.c-field--opt .c-err:empty {
  display: none;
}
.c-field--opt.is-invalid .c-box {
  border-color: #ff5a3c;
  opacity: 1;
}
.c-field--opt.is-invalid .c-t {
  opacity: 1;
}
.c-opt {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-left: 6px;
  padding-right: 12px;
  cursor: pointer;
  user-select: none;
}
.c-opt input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}
.c-t {
  opacity: .6;
  transition: opacity .2s var(--ease-out);
  flex: 1 1 auto;
  min-width: 0;
  white-space: normal;
}
.c-box {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border: 1px solid #fff;
  box-sizing: border-box;
  margin-top: 1.5px;
  background: transparent;
  opacity: .8;
  transition: background-color .15s var(--ease-out), opacity .2s var(--ease-out);
}
.c-opt input:checked ~ .c-box {
  background: #fff;
}
.c-opt input:checked ~ .c-t,
.c-opt:hover .c-t,
.c-opt input:checked ~ .c-box,
.c-opt:hover .c-box,
.c-opt input:focus-visible ~ .c-box {
  opacity: 1;
}
.c-opt input:focus-visible ~ .c-box {
  outline: 1px solid #fff;
  outline-offset: 2px;
}
.c-u {
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}
.c-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
  padding-left: 4px;
}
.c-send {
  font: inherit;
  letter-spacing: inherit;
  color: #fff;
  background: transparent;
  border: 1px solid #fff;
  border-radius: 0;
  padding: 4px 10px 5px;
  cursor: pointer;
  overflow: hidden;
  flex: 0 0 auto;
  transition: background-color .2s var(--ease-out), color .2s var(--ease-out);
}
@media (hover: hover) {
  .c-send:hover {
    background: #fff;
    color: #000;
  }
}
.c-send:active {
  background: #fff;
  color: #000;
}
.c-send:hover .roll__ch > span,
.c-send:focus-visible .roll__ch > span {
  transform: translateY(-100%);
  transition: transform .42s var(--ease);
  transition-delay: calc(var(--i) * var(--step, 9ms));
}
.c-send:focus-visible {
  outline: 1px solid #fff;
  outline-offset: 2px;
}
.c-send[disabled] {
  opacity: .5;
  cursor: progress;
}
.c-status {
  margin: 0;
  opacity: .8;
}
.c-status.is-error {
  color: #ff5a3c;
  opacity: 1;
}
.c-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.is-waiting,
.is-waiting * {
  animation-play-state: paused !important;
}
.is-entering .c-line {
  animation: cDraw 900ms var(--ease) both;
  animation-delay: calc(250ms + var(--s, 0) * 90ms);
}
.is-entering .c-label .c-in,
.is-entering .c-field,
.is-entering .c-opt:not(.c-field--opt .c-opt),
.is-entering .c-actions {
  animation: wLine 650ms var(--ease-out) both;
  animation-delay: calc(700ms + var(--s, 0) * 90ms + var(--r, 0) * 45ms);
}
.is-entering .c-contacts li {
  animation: wLine 650ms var(--ease-out) both;
  animation-delay: calc(150ms + var(--lines, 4) * 70ms + var(--r, 0) * 60ms);
}
@keyframes cDraw {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}
@media (prefers-reduced-motion: reduce) {
  .is-entering .c-line,
  .is-entering .c-label .c-in,
  .is-entering .c-field,
  .is-entering .c-opt,
  .is-entering .c-actions,
  .is-entering .c-contacts li {
    animation: wFade 300ms ease-out both !important;
  }
}
@media (max-width: 1100px) and (min-width: 761px) {
  .c-step {
    grid-template-columns: minmax(0, 1fr) min(245px, 55%);
  }
}
@media (max-width: 760px) {
  .contact-page {
    padding: 0 0 64px;
    display: flex;
    flex-direction: column;
  }
  .page-contact .w-intro {
    position: relative;
    top: auto;
    left: auto;
    margin: 109px 16px 0;
  }
  .c-contacts {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    margin: 40px 16px 0;
  }
  .c-form {
    margin: 56px 16px 0;
    width: auto;
  }
  .c-step {
    grid-template-columns: minmax(0, 1fr) min(220px, 60%);
    padding-bottom: 32px;
  }
  .c-label {
    padding-left: 0;
  }
  .c-opt {
    padding-right: 0;
  }
  .c-input input {
    max-width: calc(60vw - 20px);
  }
  .c-opt,
  .c-actions,
  .c-field {
    min-height: 20px;
    align-items: center;
  }
  .c-fields {
    gap: 4px;
  }
}
@media (min-width: 761px) {
  html:has(.page-contact),
  .page-contact {
    height: 100%;
    overflow: hidden;
    overscroll-behavior: none;
  }
  .contact-page {
    min-height: 0;
    height: 100%;
    padding: 0;
  }
  .c-form {
    position: fixed;
    top: 59px;
    bottom: 0;
    left: 0;
    z-index: 2;
    margin: 0;
    width: calc(min(686px, calc(var(--rc, 66.667vw) - 24px - var(--c-gap))) + 24px);
    padding: 183px 0 96px 24px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: none;
  }
  .c-form::-webkit-scrollbar {
    display: none;
  }
}
@media (max-width: 760px) {
  .c-step:last-of-type .c-fields {
    display: contents;
  }
  .c-step:last-of-type .c-field--opt {
    grid-column: 2;
    grid-row: 1;
  }
  .c-step:last-of-type .c-actions {
    grid-column: 1 / -1;
    grid-row: 2;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-top: 40px;
    padding-left: 0;
  }
  .c-send {
    width: 100%;
    padding: 15px 16px 16px;
    font-size: 13px;
    text-align: center;
  }
  .c-status {
    text-align: left;
  }
}
@media (max-width: 760px), (max-width: 1180px) and (orientation: portrait) {
  html body .c-step {
    grid-template-columns: 1fr;
    row-gap: 16px;
  }
  html body .c-label {
    padding-left: 0;
  }
  html body .c-opt {
    padding-left: 0;
    padding-right: 0;
  }
  html body .c-step:last-of-type .c-fields {
    display: contents;
  }
  html body .c-step:last-of-type .c-field--opt {
    grid-column: 1;
    grid-row: 2;
  }
  html body .c-step:last-of-type .c-actions {
    grid-column: 1;
    grid-row: 3;
    padding-left: 0;
    margin-top: 24px;
  }
}
.c-mail {
  display: inline-flex;
  align-items: baseline;
}
.c-mail__br:first-child {
  margin: 0 3px 0 -6px;
}
.c-mail__br:last-child {
  margin-left: 3px;
}
@media (max-width: 760px) {
  .c-mail__br:first-child {
    margin-left: 0;
  }
}
.c-form.is-sending .c-step {
  opacity: .5;
  transition: opacity .3s var(--ease-out);
  pointer-events: none;
}
.c-form.is-sending .c-send {
  cursor: progress;
}
.c-form.is-sending .c-send .c-in::after {
  content: "";
  display: inline-block;
  width: 1.2em;
  text-align: left;
  animation: cDots 1.2s steps(4, end) infinite;
}
@keyframes cDots {
  0% {
    content: "";
  }
  25% {
    content: ".";
  }
  50% {
    content: "..";
  }
  75%, 100% {
    content: "...";
  }
}
.c-send[disabled] {
  opacity: 1;
}
.c-status__mail {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}
.c-form.is-done .c-step {
  display: none;
}
.c-done {
  position: relative;
  padding: 16px 0 32px;
}
.c-done .c-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: rgba(255, 255, 255, .3);
  transform-origin: 0 50%;
}
.c-done__title {
  margin: 0 0 6px;
  font-size: 15px;
  line-height: 17px;
}
.c-done__text {
  margin: 0 0 20px;
  opacity: .6;
  max-width: 360px;
}
.c-done.is-in .c-line {
  animation: cDraw 900ms var(--ease) both;
}
.c-done.is-in .c-done__title,
.c-done.is-in .c-done__text,
.c-done.is-in .c-done__btn {
  animation: wLine 650ms var(--ease-out) both;
}
.c-done.is-in .c-done__title {
  animation-delay: 300ms;
}
.c-done.is-in .c-done__text {
  animation-delay: 380ms;
}
.c-done.is-in .c-done__btn {
  animation-delay: 460ms;
}
@media (prefers-reduced-motion: reduce) {
  .c-done.is-in * {
    animation: wFade 300ms ease-out both !important;
  }
  .c-form.is-sending .c-send .c-in::after {
    animation: none;
    content: "…";
  }
}
.c-field:not(.c-field--opt) {
  height: auto;
  min-height: 12px;
}
.c-field > .c-err {
  flex: 0 0 100%;
  margin-top: 6px;
  line-height: 1.25;
}
.c-status {
  flex: 1 1 auto;
  min-width: 0;
  line-height: 1.35;
}
@media (max-width: 760px), (max-width: 1180px) and (orientation: portrait) {
  html body .c-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  html body .c-status {
    width: 100%;
    text-align: left;
  }
  html body .c-status:empty {
    display: none;
  }
}
