.contact-page {
  position: relative;
  overflow: hidden;
  background: #13171b;
}

.contact-page::before {
  position: absolute;
  top: 100px;
  left: 50%;
  width: 760px;
  height: 760px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(73, 117, 143, 0.08), transparent 67%);
  transform: translateX(-50%);
  pointer-events: none;
  content: "";
}

.contact-shell {
  position: relative;
  width: min(100% - 48px, 1060px);
  margin: 0 auto;
  padding: 86px 0 110px;
}

.contact-intro {
  max-width: 100%;
  margin: 0 0 130px;
}

.contact-kicker {
  margin: 0 0 23px;
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.contact-kicker span {
  margin: 0 9px;
  color: #697d88;
}

.contact-kicker a,
.contact-kicker a:visited {
  color: var(--accent);
  text-decoration: none;
}

.contact-kicker a:hover,
.contact-kicker a:focus-visible {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.contact-intro h1 {
  margin: 0;
  color: var(--white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.65rem, 7.4vw, 5.4rem);
  font-weight: 400;
  letter-spacing: -0.048em;
  line-height: 1.07;
  white-space: nowrap;
}

.contact-intro > p:last-child {
  margin: 26px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.13rem);
  line-height: 1.65;
}

.contact-section {
  padding: 47px 0 0;
  border-top: 1px solid rgba(128, 201, 237, 0.28);
}

.contact-instagram {
  padding-top: 24px;
}

.contact-section + .contact-section {
  margin-top: 110px;
}

.contact-section__heading {
  display: flex;
  align-items: flex-start;
  gap: 23px;
}

.contact-section__number {
  padding-top: 9px;
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.contact-section__heading h2 {
  margin: 0;
  color: var(--white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 3.6vw, 3.15rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.contact-section__heading p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.instagram-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  width: min(100%, 385px);
  min-height: 78px;
  margin: 48px auto 0;
  padding: 10px 19px 10px 11px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 999px;
  color: var(--white);
  background: #20262b;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.14);
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: background 240ms ease, box-shadow 240ms ease, transform 240ms ease, border-color 240ms ease;
}

.instagram-cta:hover,
.instagram-cta:focus-visible {
  border-color: rgba(255, 255, 255, 0.7);
  background: linear-gradient(105deg, #563aca 0%, #bd378a 53%, #ea8941 100%);
  box-shadow: 0 0 45px rgba(189, 55, 138, 0.38), 0 15px 38px rgba(0, 0, 0, 0.24);
  transform: translateY(-3px);
}

.instagram-cta__icon {
  display: grid;
  place-items: center;
  flex: 0 0 54px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  color: var(--white);
  background: #101418;
}

.instagram-cta__icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

.instagram-cta__arrow {
  margin-left: auto;
  font-size: 1.35rem;
  font-weight: 300;
}

.instagram-highlights {
  width: min(100%, 820px);
  margin: 64px auto 0;
}

.instagram-highlights__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.instagram-highlights__heading h3,
.instagram-posts h3 {
  margin: 0;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.instagram-highlights__controls {
  display: flex;
  gap: 9px;
}

.instagram-highlights__arrow {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid rgba(128, 201, 237, 0.38);
  border-radius: 50%;
  color: var(--accent);
  background: #1c242a;
  cursor: pointer;
  font: inherit;
  font-size: 1.1rem;
  transition: border-color 180ms ease, color 180ms ease, background-color 180ms ease;
}

.instagram-highlights__arrow[hidden] {
  display: none;
}

.instagram-highlights__arrow:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--white);
  background: #27343d;
}

.instagram-highlights__arrow:disabled {
  opacity: 0.32;
  cursor: default;
}

.instagram-highlights__track {
  display: flex;
  gap: 18px;
  width: 100%;
  margin-top: 18px;
  padding: 9px 5px 18px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
}

.instagram-highlights__track::-webkit-scrollbar {
  display: none;
}

.instagram-highlights__track:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.instagram-highlight {
  flex: 0 0 clamp(150px, 19vw, 190px);
  scroll-snap-align: start;
  transition: transform 220ms ease, filter 220ms ease;
}

.instagram-highlight img {
  display: block;
  width: 100%;
  height: auto;
}

.instagram-posts {
  margin-top: 67px;
}

.instagram-posts__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(10px, 1.5vw, 18px);
  margin-top: 20px;
}

.instagram-post {
  position: relative;
  z-index: 0;
  display: block;
  min-width: 0;
  border: 1px solid rgba(128, 201, 237, 0.15);
  border-radius: 7px;
  background: #0d1115;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  filter: brightness(0.96);
  transition: transform 260ms ease, filter 260ms ease, border-color 260ms ease, box-shadow 260ms ease;
}

.instagram-post img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}

a.instagram-post {
  cursor: pointer;
}

@media (hover: hover) and (pointer: fine) {
  .instagram-highlight:hover {
    filter: brightness(1.13);
    transform: scale(1.055);
  }

  .instagram-post:hover {
    z-index: 1;
    border-color: rgba(128, 201, 237, 0.5);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.33), 0 0 25px rgba(128, 201, 237, 0.1);
    filter: brightness(1.11);
    transform: scale(1.035);
  }
}

a.instagram-post:focus-visible {
  z-index: 1;
  filter: brightness(1.11);
  transform: scale(1.035);
}

.contact-email__address {
  display: inline-block;
  margin-top: 15px;
  color: var(--accent);
  font-size: clamp(1rem, 2vw, 1.28rem);
  text-decoration-color: rgba(128, 201, 237, 0.6);
  text-underline-offset: 6px;
  overflow-wrap: anywhere;
}

.contact-email__address:hover {
  color: var(--white);
}

.contact-form-wrap {
  margin: 55px 0 0;
  padding: clamp(26px, 5vw, 55px);
  border: 1px solid rgba(128, 201, 237, 0.16);
  border-radius: 12px;
  background: #191f24;
  scroll-margin-top: 36px;
}

.contact-form-wrap__intro h3 {
  margin: 0;
  color: var(--white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 400;
}

.contact-form-wrap__intro p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.contact-notice {
  margin: 28px 0 0;
  padding: 15px 18px;
  border: 1px solid rgba(128, 201, 237, 0.3);
  border-radius: 7px;
  color: #c3d4dd;
  background: rgba(128, 201, 237, 0.06);
  font-size: 0.9rem;
  line-height: 1.55;
}

.contact-notice--success {
  border-color: rgba(102, 199, 150, 0.5);
  color: #b1e7c7;
  background: rgba(102, 199, 150, 0.08);
}

.contact-notice--error {
  border-color: rgba(236, 129, 119, 0.4);
  color: #f0aca6;
  background: rgba(236, 129, 119, 0.08);
}

.contact-form {
  display: grid;
  gap: 25px;
  margin-top: 34px;
}

.contact-form__trap {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.contact-form__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.contact-form__field {
  display: grid;
  gap: 10px;
}

.contact-form__field label {
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.contact-form__field input,
.contact-form__field textarea {
  display: block;
  width: 100%;
  min-height: 53px;
  padding: 14px 16px;
  border: 1px solid #43515b;
  border-radius: 6px;
  outline: none;
  color: var(--white);
  background: #11171c;
  font: inherit;
  line-height: 1.5;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.contact-form__field textarea {
  min-height: 165px;
  resize: vertical;
}

.contact-form__field input:focus,
.contact-form__field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(128, 201, 237, 0.12);
}

.contact-form__field [aria-invalid="true"] {
  border-color: #ec8177;
}

.contact-form__error {
  color: #f0aca6;
  font-size: 0.82rem;
}

.contact-form__submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  width: min(100%, 265px);
  min-height: 56px;
  padding: 13px 20px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: #0c151a;
  background: var(--accent);
  cursor: pointer;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  transition: background-color 180ms ease, transform 180ms ease;
}

.contact-form__submit:not(:disabled):hover {
  background: #a9ddf5;
  transform: translateY(-2px);
}

.contact-form__submit:disabled {
  border-color: #414d54;
  color: #adb8bd;
  background: #343e44;
  cursor: not-allowed;
}

.contact-form__submit span {
  font-size: 1.2rem;
  font-weight: 400;
}

@media (max-width: 650px) {
  .contact-shell {
    width: min(100% - 42px, 500px);
    padding: 124px 0 75px;
  }

  .contact-intro {
    margin-bottom: 75px;
  }

  .contact-intro > p:last-child {
    margin-top: 18px;
  }

  .contact-section {
    padding-top: 34px;
  }

  .contact-section + .contact-section {
    margin-top: 75px;
  }

  .contact-section__heading {
    gap: 16px;
  }

  .instagram-cta {
    margin-top: 38px;
  }

  .instagram-highlights {
    margin-top: 48px;
  }

  .instagram-highlights__track {
    gap: 14px;
  }

  .instagram-highlight {
    flex-basis: 150px;
  }

  .instagram-posts {
    margin-top: 52px;
  }

  .instagram-posts__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .contact-form-wrap {
    margin-top: 42px;
  }

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

@media (max-width: 380px) {
  .instagram-cta {
    gap: 15px;
    min-height: 70px;
    font-size: 1rem;
  }

  .instagram-cta__icon {
    flex-basis: 48px;
    width: 48px;
    height: 48px;
  }
}
