.page-contact {
  background: var(--ink);
  color: var(--paper);
  padding-bottom: 80px;
}

.page-contact__head {
  padding-top: 104px;
  padding-bottom: 40px;
}

.page-contact .breadcrumb {
  margin-bottom: 32px;
}

.page-contact__intro .tag {
  display: inline-block;
  margin-bottom: 16px;
}

.page-contact__title {
  margin: 0 0 16px;
  font-size: clamp(34px, 8.5vw, 50px);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.page-contact__lead {
  max-width: 680px;
  margin: 0;
  font-size: 16px;
  line-height: 1.75;
  color: var(--soft-paper);
}

.page-contact__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.page-contact__chips a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  color: var(--soft-paper);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}

.page-contact__chips a:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.page-contact__chips span {
  font-family: var(--font-num);
  font-size: 11px;
  color: var(--stone);
}

.page-contact__block {
  padding: 56px 0 12px;
}

.page-contact__block .section-head {
  margin-bottom: 30px;
}

.page-contact__block-lead {
  max-width: 520px;
  margin: 0 0 32px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--stone);
}

.contact-window {
  display: grid;
  grid-template-columns: 1fr;
}

.contact-window__aside {
  position: relative;
  padding: 36px 24px 64px;
  background: var(--brand);
  color: var(--ink);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 30px), calc(100% - 30px) 100%, 0 100%);
}

.contact-window__eyebrow {
  margin: 0 0 10px;
  font-family: var(--font-num);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.72;
}

.contact-window__title {
  margin: 0 0 24px;
  font-size: 26px;
  line-height: 1.2;
  font-weight: 800;
}

.contact-window__divider {
  width: 44px;
  height: 2px;
  margin: 0 0 24px;
  background: var(--ink);
  opacity: 0.6;
}

.contact-window__label {
  display: block;
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.7;
}

.contact-window__phone {
  display: block;
  margin: 0 0 24px;
  font-family: var(--font-num);
  font-size: clamp(36px, 9.5vw, 52px);
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
  word-break: keep-all;
}

.contact-window__email,
.contact-window__general {
  display: inline-block;
  margin: 0 0 14px;
  padding-bottom: 2px;
  font-family: var(--font-num);
  font-size: 18px;
  line-height: 1.4;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid currentColor;
  transition: opacity var(--dur-fast) var(--ease);
}

.contact-window__email:hover,
.contact-window__general:hover {
  opacity: 0.7;
}

.contact-window__figure {
  margin: 28px 0 0;
}

.contact-window__illu {
  display: block;
  width: 220px;
  max-width: 100%;
  height: auto;
  border: 1px solid rgba(11, 12, 14, 0.25);
  background: rgba(255, 255, 255, 0.18);
}

.contact-window__figcap {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.6;
  color: rgba(11, 12, 14, 0.72);
}

.contact-window__panel {
  padding: 36px 24px 40px;
  background: var(--paper);
  color: var(--ink);
}

.contact-window__kicker {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--crimson);
}

.contact-window__formtitle {
  margin: 0 0 10px;
  font-size: 24px;
  line-height: 1.25;
  font-weight: 800;
}

.contact-window__formlead {
  margin: 0 0 28px;
  max-width: 500px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--deep-blue);
}

.contact-form {
  display: grid;
  gap: 20px;
}

.contact-form__row {
  display: grid;
  gap: 6px;
}

.contact-form__label {
  font-size: 13px;
  font-weight: 700;
  color: var(--deep-blue);
}

.contact-form__input {
  width: 100%;
  padding: 10px 2px;
  border: 0;
  border-bottom: 1px solid rgba(27, 42, 74, 0.22);
  border-radius: 0;
  background: transparent;
  font: inherit;
  color: var(--ink);
  appearance: none;
  transition: border-color var(--dur-fast) var(--ease);
}

.contact-form__input:focus {
  outline: none;
  border-bottom-color: var(--brand);
}

.contact-form__input::placeholder {
  color: var(--stone);
}

.contact-form__textarea {
  min-height: 88px;
  resize: vertical;
  line-height: 1.6;
}

.contact-form__select {
  cursor: pointer;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--deep-blue) 50%),
    linear-gradient(135deg, var(--deep-blue) 50%, transparent 50%);
  background-repeat: no-repeat;
  background-position:
    calc(100% - 16px) 50%,
    calc(100% - 11px) 50%;
  background-size: 5px 5px;
}

.contact-form__submit {
  justify-self: start;
  padding: 14px 28px;
  border: 0;
  background: var(--brand);
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}

.contact-form__submit:hover,
.contact-form__submit:focus-visible {
  background: var(--crimson);
  color: var(--paper);
}

.contact-form__privacy {
  margin: 14px 0 0;
  max-width: 420px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--stone);
}

.contact-form__privacy a {
  color: var(--deep-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.map-visual {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.map-visual__frame {
  position: relative;
  overflow: hidden;
  background: var(--deep-blue);
  border: 1px solid var(--line);
}

.map-visual__grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: radial-gradient(rgba(244, 242, 237, 0.55) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.3;
}

.map-visual__img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 3 / 2;
}

.map-visual__pin {
  position: absolute;
  left: 58%;
  top: 46%;
  z-index: 2;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--brand);
  border: 3px solid var(--paper);
  transform: translate(-50%, -50%);
  animation: map-pin 2.6s ease-in-out infinite;
}

@keyframes map-pin {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(255, 106, 27, 0.32), 0 0 0 6px rgba(255, 106, 27, 0.12);
  }
  50% {
    box-shadow: 0 0 0 14px rgba(255, 106, 27, 0), 0 0 0 6px rgba(255, 106, 27, 0.12);
  }
}

.map-visual__label {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 2;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--paper);
  background: var(--deep-blue);
  border: 1px solid rgba(244, 242, 237, 0.38);
}

.map-visual__hint {
  margin: 0;
  padding-left: 14px;
  border-left: 3px solid var(--brand);
  font-size: 13px;
  line-height: 1.75;
  color: var(--stone);
}

.ticket-card {
  position: relative;
  padding: 20px;
  background: var(--paper);
  color: var(--ink);
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.ticket-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -9px;
  height: 18px;
  background: radial-gradient(circle at 12px 9px, var(--ink) 0 5px, transparent 6px) repeat-x;
  background-size: 24px 18px;
}

.ticket-card__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  margin-bottom: 16px;
  border-bottom: 1px dashed rgba(27, 42, 74, 0.2);
}

.ticket-card__kicker {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--crimson);
}

.ticket-card__code {
  font-family: var(--font-num);
  font-size: 13px;
  font-weight: 700;
  color: var(--stone);
}

.ticket-card__address {
  margin: 0 0 20px;
  font-size: 18px;
  line-height: 1.6;
  font-weight: 800;
}

.ticket-card__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.ticket-card__coordinate {
  font-family: var(--font-num);
  font-size: 12px;
  color: var(--stone);
}

.ticket-card__note {
  font-size: 12px;
  font-weight: 800;
  color: var(--crimson);
}

.reply-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-top: 12px;
}

.reply-item {
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.reply-item__times {
  margin: 0 0 6px;
  font-family: var(--font-num);
  font-size: 30px;
  line-height: 1.1;
  font-weight: 700;
  color: var(--brand);
}

.reply-item__title {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 800;
}

.reply-item p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--soft-paper);
}

.reply-more {
  margin-top: 40px;
  padding: 20px 22px;
  background: rgba(27, 42, 74, 0.3);
  border: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.75;
  color: var(--soft-paper);
}

.reply-more a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (min-width: 760px) {
  .page-contact__head {
    padding-top: 132px;
    padding-bottom: 48px;
  }

  .contact-window__aside {
    padding: 48px 40px 72px;
  }

  .contact-window__panel {
    padding: 48px 40px 56px;
  }

  .contact-window__illu {
    width: 260px;
  }

  .map-visual__hint {
    max-width: 640px;
  }
}

@media (min-width: 900px) {
  .contact-window {
    grid-template-columns: 5fr 7fr;
  }

  .contact-window__aside {
    padding: 56px 44px 80px;
  }

  .contact-window__panel {
    padding: 56px 48px;
  }

  .map-visual {
    grid-template-columns: 1.3fr 0.7fr;
    align-items: start;
  }

  .map-visual__hint {
    grid-column: 1 / -1;
  }

  .reply-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }
}
