/* Logo animation portfolio overlay based on Figma Frame 37. */
.portfolio-showcase-modal[hidden] {
  display: none;
}

.portfolio-showcase-modal {
  position: fixed;
  z-index: 90;
  inset: 0;
  display: grid;
  padding: 12px;
  place-items: center;
  opacity: 0;
  transition: opacity 180ms ease;
}

.portfolio-showcase-modal.is-open {
  opacity: 1;
}

.portfolio-showcase-modal__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(1, 7, 10, .88);
  backdrop-filter: blur(9px);
}

.portfolio-showcase {
  position: relative;
  container-type: inline-size;
  width: min(86.475vw, calc((100svh - 24px) * 1.8047065));
  max-width: calc(100vw - 24px);
  aspect-ratio: 1660.33 / 920;
  overflow: hidden;
  border: .08cqw solid rgba(104, 127, 132, .8);
  border-radius: .948cqw;
  background:
    radial-gradient(circle at 78% 38%, rgba(13, 42, 49, .2), transparent 34%),
    linear-gradient(112deg, #030A0F 0%, #061117 100%);
  box-shadow: 0 2.4cqw 7.5cqw rgba(0, 0, 0, .68);
  color: #F4F4F4;
  outline: none;
  opacity: 0;
  transform: scale(.985);
  transition: opacity 180ms ease, transform 180ms ease;
}

.portfolio-showcase-modal.is-open .portfolio-showcase {
  opacity: 1;
  transform: scale(1);
}

.portfolio-showcase__header {
  position: absolute;
  z-index: 3;
  inset: 0;
  pointer-events: none;
}

.portfolio-showcase__coming-soon[hidden] {
  display: none;
}

.portfolio-showcase__coming-soon {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: grid;
  padding: 4cqw;
  background: rgba(1, 7, 10, .62);
  -webkit-backdrop-filter: blur(.55cqw);
  backdrop-filter: blur(.55cqw);
  color: #FFFFFF;
  cursor: pointer;
  place-items: center;
  text-align: center;
}

.portfolio-showcase__coming-soon p {
  margin: 0;
  font-size: clamp(18px, 2.35cqw, 40px);
  font-weight: 500;
  line-height: 1.25;
  text-shadow: 0 .18cqw .8cqw rgba(0, 0, 0, .7);
}

.portfolio-showcase__brand {
  position: absolute;
  top: 1.72cqw;
  left: 2.73cqw;
  width: 7.29cqw;
  height: 2.83cqw;
}

.portfolio-showcase__brand > img:first-child {
  display: block;
  width: 100%;
  height: 100%;
}

.portfolio-showcase__registered {
  position: absolute;
  top: -.48cqw;
  right: -.98cqw;
  width: .96cqw;
  height: .96cqw;
}

.portfolio-showcase__header-divider {
  position: absolute;
  top: 1.95cqw;
  left: 12.18cqw;
  width: .06cqw;
  height: 2.25cqw;
  background: rgba(210, 218, 220, .6);
}

.portfolio-showcase__breadcrumb {
  position: absolute;
  top: 2.68cqw;
  left: 15.65cqw;
  display: flex;
  margin: 0;
  align-items: center;
  gap: 1.65cqw;
  color: #AEB4B6;
  font-size: .82cqw;
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
}

.portfolio-showcase__breadcrumb strong {
  font-weight: 400;
}

.portfolio-showcase__counter {
  position: absolute;
  top: 3.63cqw;
  right: 23.9cqw;
  margin: 0;
  color: #B4B9BB;
  font-size: .94cqw;
  line-height: 1;
}

.portfolio-showcase__nav,
.portfolio-showcase__close,
.portfolio-showcase__strip-nav {
  pointer-events: auto;
  cursor: pointer;
}

.portfolio-showcase__nav {
  position: absolute;
  top: 2.05cqw;
  display: grid;
  width: 2.95cqw;
  height: 2.95cqw;
  padding: 0;
  border: .08cqw solid #E7EAEA;
  border-radius: 50%;
  background: transparent;
  color: #E7EAEA;
  place-items: center;
  transition: border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.portfolio-showcase__nav--previous { right: 16.75cqw; }
.portfolio-showcase__nav--next { right: 10.95cqw; }

.portfolio-showcase__nav svg {
  width: .72cqw;
  height: 1.33cqw;
}

.portfolio-showcase__nav:hover,
.portfolio-showcase__nav:focus-visible,
.portfolio-showcase__strip-nav:hover,
.portfolio-showcase__strip-nav:focus-visible {
  border-color: var(--line);
  color: var(--line);
  outline: none;
  transform: scale(1.08);
}

.portfolio-showcase__close-divider {
  position: absolute;
  top: 2.36cqw;
  right: 5.96cqw;
  width: .06cqw;
  height: 2.25cqw;
  background: rgba(210, 218, 220, .55);
}

.portfolio-showcase__close {
  position: absolute;
  top: 2.8cqw;
  right: 2.32cqw;
  width: 1.45cqw;
  height: 1.45cqw;
  padding: 0;
  border: 0;
  background: transparent;
  color: #C6CCCE;
  transition: color 160ms ease, transform 160ms ease;
}

.portfolio-showcase__close span {
  position: absolute;
  top: .68cqw;
  left: 0;
  width: 1.45cqw;
  height: .08cqw;
  background: currentColor;
}

.portfolio-showcase__close span:first-child { transform: rotate(45deg); }
.portfolio-showcase__close span:last-child { transform: rotate(-45deg); }

.portfolio-showcase__close:hover,
.portfolio-showcase__close:focus-visible {
  color: var(--line);
  outline: none;
  transform: scale(1.12);
}

.portfolio-showcase__player {
  position: absolute;
  top: 5.727cqw;
  left: 2.725cqw;
  width: 65.64cqw;
  height: 34.084cqw;
  overflow: hidden;
  border: .04cqw solid rgba(93, 104, 107, .75);
  border-radius: .87cqw;
  background: #000;
}

.portfolio-showcase__player video,
.portfolio-showcase__player img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
  outline: none;
  opacity: 1;
  transition: opacity 130ms ease;
}

.portfolio-showcase__player video {
  cursor: pointer;
}

.portfolio-showcase__player [hidden] {
  display: none;
}

.portfolio-showcase__player video.is-switching,
.portfolio-showcase__player img.is-switching {
  opacity: .2;
}

.portfolio-showcase__player video:focus-visible {
  box-shadow: inset 0 0 0 .12cqw var(--line);
}

.portfolio-showcase__details {
  position: absolute;
  top: 5.727cqw;
  left: 71.6cqw;
  width: 25.35cqw;
  height: 34.084cqw;
  border-top: .04cqw solid rgba(162, 173, 176, .45);
}

.portfolio-showcase__details h2 {
  margin: 2.28cqw 0 0;
  color: #F4F4F4;
  font-size: 1.86cqw;
  font-weight: 500;
  line-height: 1.15;
}

.portfolio-showcase__description {
  min-height: 11.6cqw;
  margin-top: 1.45cqw;
  color: #B9BFC1;
  font-size: 1cqw;
  line-height: 1.52;
}

.portfolio-showcase__description p {
  margin: 0;
}

.portfolio-showcase__tags {
  display: flex;
  flex-wrap: wrap;
  gap: .55cqw;
  margin-top: 1.1cqw;
}

.portfolio-showcase__tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.9cqw;
  padding: 0 .85cqw;
  border: .04cqw solid rgba(162, 173, 176, .35);
  border-radius: 1.2cqw;
  color: #90999C;
  font-size: .72cqw;
  line-height: 1;
  white-space: nowrap;
}

.portfolio-showcase__cta {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 12.35cqw;
  padding-top: 1.36cqw;
  border-top: .04cqw solid rgba(162, 173, 176, .36);
}

.portfolio-showcase__cta h3 {
  margin: 0;
  font-size: 1.06cqw;
  font-weight: 500;
  line-height: 1.3;
}

.portfolio-showcase__cta p {
  margin: .78cqw 0 0;
  color: #BDC2C4;
  font-size: .94cqw;
  line-height: 1.52;
}

.portfolio-showcase__cta button {
  position: absolute;
  bottom: .14cqw;
  left: 0;
  display: flex;
  width: 11.3cqw;
  height: 2.9cqw;
  padding: 0 1.18cqw;
  align-items: center;
  justify-content: space-between;
  border: .08cqw solid var(--line);
  border-radius: 1.8cqw;
  background: transparent;
  color: var(--line);
  font-size: .84cqw;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.portfolio-showcase__cta button svg {
  width: 1.2cqw;
  height: .82cqw;
}

.portfolio-showcase__cta button:hover,
.portfolio-showcase__cta button:focus-visible {
  background: var(--line);
  color: #020A0E;
  outline: none;
  transform: scale(1.045);
}

.portfolio-showcase__strip {
  position: absolute;
  top: 42.063cqw;
  left: 2.725cqw;
  width: 94.155cqw;
  height: 10.585cqw;
  overflow: hidden;
  border: .04cqw solid rgba(122, 137, 141, .68);
  border-radius: .87cqw;
  background: rgba(4, 14, 19, .72);
}

.portfolio-showcase__thumbs-viewport {
  position: absolute;
  top: .82cqw;
  right: 4.3cqw;
  bottom: .82cqw;
  left: 4.3cqw;
  overflow: hidden;
}

.portfolio-showcase__thumbs {
  display: flex;
  height: 100%;
  gap: 1cqw;
  transition: transform 220ms ease;
}

.portfolio-showcase__thumb {
  position: relative;
  flex: 0 0 calc((100% - 4cqw) / 5);
  height: 100%;
  padding: 0;
  overflow: hidden;
  border: .08cqw solid #1E2426;
  border-radius: .55cqw;
  background: #000;
  cursor: pointer;
  transition: border-color 160ms ease, transform 160ms ease;
}

.portfolio-showcase__thumb video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.portfolio-showcase__thumb.is-active,
.portfolio-showcase__thumb:hover,
.portfolio-showcase__thumb:focus-visible {
  border-color: var(--line);
  outline: none;
}

.portfolio-showcase__thumb:hover,
.portfolio-showcase__thumb:focus-visible {
  transform: scale(.985);
}

.portfolio-showcase__strip-nav {
  position: absolute;
  z-index: 2;
  top: 50%;
  width: 2.2cqw;
  height: 2.2cqw;
  padding: 0;
  border: 0;
  background: transparent;
  color: #D7DDDE;
  transform: translateY(-50%);
  transition: color 160ms ease, transform 160ms ease;
}

.portfolio-showcase__strip-nav--previous { left: .82cqw; }
.portfolio-showcase__strip-nav--next { right: .82cqw; }

.portfolio-showcase__strip-nav svg {
  width: 1.87cqw;
  height: 1.2cqw;
}

.portfolio-showcase__strip-nav:hover,
.portfolio-showcase__strip-nav:focus-visible {
  transform: translateY(-50%) scale(1.1);
}

@media (prefers-reduced-motion: reduce) {
  .portfolio-showcase-modal,
  .portfolio-showcase,
  .portfolio-showcase__player video,
  .portfolio-showcase__thumbs,
  .portfolio-showcase__thumb,
  .portfolio-showcase__nav,
  .portfolio-showcase__close,
  .portfolio-showcase__cta button {
    transition: none;
  }
}

/* Contact request modal based on Figma Frame 38. */
[data-open-contact] {
  cursor: pointer;
}

body.has-open-modal {
  overflow: hidden;
}

.contact-modal[hidden] {
  display: none;
}

.contact-modal {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  padding: 16px;
  overflow-y: auto;
  place-items: center;
  opacity: 0;
  transition: opacity 180ms ease;
}

.contact-modal.is-open {
  opacity: 1;
}

.contact-modal__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(1, 7, 10, .82);
  backdrop-filter: blur(9px);
}

.contact-dialog {
  position: relative;
  width: min(660px, calc(100vw - 32px));
  max-height: calc(100svh - 32px);
  padding: 36px 37px 35px;
  overflow-y: auto;
  border: 1px solid rgba(17, 210, 170, .5);
  border-radius: 14px;
  background: #0D0D0D;
  box-shadow: 0 24px 90px rgba(0, 0, 0, .62), 0 0 34px rgba(17, 210, 170, .08);
  color: #F3F5F5;
  outline: none;
  opacity: 0;
  transform: translateY(16px) scale(.985);
  transition: opacity 180ms ease, transform 180ms ease;
}

.contact-modal.is-open .contact-dialog {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.contact-dialog__close {
  position: absolute;
  z-index: 2;
  top: 18px;
  right: 18px;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(130, 154, 160, .28);
  border-radius: 50%;
  background: rgba(4, 14, 18, .7);
  color: #E7ECEC;
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.contact-dialog__close span {
  position: absolute;
  top: 16px;
  left: 9px;
  width: 15px;
  height: 1px;
  background: currentColor;
}

.contact-dialog__close span:first-child { transform: rotate(45deg); }
.contact-dialog__close span:last-child { transform: rotate(-45deg); }

.contact-dialog__close:hover,
.contact-dialog__close:focus-visible {
  border-color: var(--line);
  background: rgba(17, 210, 170, .1);
  outline: none;
  transform: scale(1.08);
}

.contact-dialog__header {
  padding: 0 4px;
}

.contact-dialog__eyebrow {
  margin: 0 0 13px;
  color: var(--line);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: .34em;
}

.contact-dialog__header h2 {
  margin: 0;
  color: #F6F7F7;
  font-size: 35px;
  font-weight: 500;
  line-height: 1.16;
  letter-spacing: -.015em;
}

.contact-dialog__header h2 span {
  color: var(--line);
}

.contact-dialog__header > p:last-child {
  margin: 13px 0 0;
  color: #B4B8B9;
  font-size: 13px;
  line-height: 1.55;
}

.contact-form {
  margin-top: 22px;
  padding: 17px 15px 10px;
  border: 1px solid rgba(53, 91, 99, .65);
  border-radius: 15px;
  background: #020C11;
}

.contact-form fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.contact-form legend {
  margin: 0 0 12px;
  padding: 0;
  color: #F0F3F3;
  font-size: 13px;
  line-height: 1.25;
}

.contact-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 42px;
}

.contact-option {
  position: relative;
  display: flex;
  min-width: 0;
  height: 102px;
  padding: 13px 5px 10px;
  align-items: center;
  flex-direction: column;
  border: 1px solid rgba(48, 78, 84, .72);
  border-radius: 14px;
  background: rgba(2, 12, 17, .68);
  color: #E4E8E8;
  cursor: pointer;
  transition: border-color 160ms ease, color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.contact-option:hover,
.contact-option:focus-visible {
  border-color: rgba(17, 210, 170, .68);
  color: #FFFFFF;
  outline: none;
  transform: translateY(-2px);
}

.contact-option.is-active {
  border-color: var(--line);
  background: rgba(17, 210, 170, .045);
  color: var(--line);
  box-shadow: inset 0 0 0 1px rgba(17, 210, 170, .13);
}

.contact-option__icon,
.contact-option__svg {
  display: block;
  width: 28px;
  height: 28px;
  margin-bottom: 9px;
  flex: 0 0 auto;
}

.contact-option__icon {
  background: currentColor;
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
}

.contact-option__icon--telegram {
  mask-image: url("./assets/images/social-telegram.svg");
}

.contact-option__icon--vk {
  mask-image: url("./assets/images/social-vk.svg");
}

.contact-option__svg--mail {
  width: 26px;
  height: 24px;
  margin-top: 2px;
  margin-bottom: 11px;
}

.contact-option strong {
  color: #F2F4F4;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.2;
}

.contact-option small {
  display: block;
  max-width: 100%;
  margin-top: 4px;
  overflow: hidden;
  color: #8E989A;
  font-size: 7px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact-form--direct {
  padding-bottom: 17px;
}

.contact-form--direct .contact-option::after {
  position: absolute;
  top: 10px;
  right: 11px;
  color: rgba(17, 210, 170, .72);
  font-size: 14px;
  line-height: 1;
  content: "↗";
  transition: color 160ms ease, transform 160ms ease;
}

.contact-form--direct .contact-option:hover::after,
.contact-form--direct .contact-option:focus-visible::after {
  color: var(--line);
  transform: translate(2px, -2px);
}

.contact-direct-notice {
  position: relative;
  display: grid;
  margin-top: 18px;
  padding: 15px 16px;
  overflow: hidden;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 13px;
  border: 1px solid rgba(17, 210, 170, .18);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(17, 210, 170, .075), rgba(3, 17, 24, .74));
}

.contact-direct-notice::before {
  position: absolute;
  inset: 11px auto 11px 0;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, transparent, var(--line), transparent);
  content: "";
}

.contact-direct-notice__icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(17, 210, 170, .3);
  border-radius: 50%;
  background: rgba(17, 210, 170, .06);
  color: var(--line);
}

.contact-direct-notice__icon svg {
  width: 19px;
  height: 19px;
}

.contact-direct-notice strong {
  display: block;
  color: #EEF3F2;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
}

.contact-direct-notice p {
  margin: 5px 0 0;
  color: #98A5A6;
  font-size: 11px;
  line-height: 1.5;
}

.contact-form__divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  margin: 23px 1px 21px;
  align-items: center;
  gap: 13px;
  color: #A9B0B2;
  font-size: 11px;
}

.contact-form__divider::before,
.contact-form__divider::after {
  height: 1px;
  background: rgba(195, 205, 208, .44);
  content: "";
}

.contact-form__details legend {
  margin-bottom: 14px;
}

.contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.contact-field {
  display: block;
  min-width: 0;
}

.contact-field > span {
  display: block;
  margin: 0 2px 6px;
  color: #AEB5B7;
  font-size: 10px;
  line-height: 1.2;
}

.contact-field input,
.contact-field textarea {
  display: block;
  width: 100%;
  border: 1px solid rgba(43, 78, 86, .65);
  border-radius: 10px;
  background: #031118;
  color: #ECF1F1;
  font: inherit;
  font-size: 11px;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.contact-field input {
  height: 41px;
  padding: 0 12px;
}

.contact-field textarea {
  height: 88px;
  padding: 12px 13px 22px;
  resize: vertical;
}

.contact-field input::placeholder,
.contact-field textarea::placeholder {
  color: #38505A;
  opacity: 1;
}

.contact-field input:focus,
.contact-field textarea:focus {
  border-color: var(--line);
  box-shadow: 0 0 0 2px rgba(17, 210, 170, .08);
}

.contact-field input:user-invalid,
.contact-field textarea:user-invalid {
  border-color: #B94B5C;
}

.contact-field--project {
  position: relative;
  margin-top: 15px;
}

.contact-field__counter {
  position: absolute;
  right: 10px;
  bottom: 8px;
  color: #35505A;
  font-size: 8px;
  pointer-events: none;
}

.contact-consent {
  display: inline-flex;
  margin-top: 14px;
  align-items: center;
  gap: 8px;
  color: #ABB3B5;
  font-size: 9px;
  cursor: pointer;
}

.contact-consent input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.contact-consent__box {
  display: grid;
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  border: 1px solid #4A6268;
  border-radius: 4px;
  background: #031118;
  color: #02100D;
  place-items: center;
}

.contact-consent__box svg {
  width: 11px;
  height: 8px;
  opacity: 0;
}

.contact-consent input:checked + .contact-consent__box {
  border-color: var(--line);
  background: var(--line);
}

.contact-consent input:checked + .contact-consent__box svg {
  opacity: 1;
}

.contact-consent input:focus-visible + .contact-consent__box {
  outline: 2px solid rgba(17, 210, 170, .5);
  outline-offset: 2px;
}

.contact-consent.is-disabled {
  cursor: not-allowed;
  opacity: .4;
}

.contact-consent__link {
  color: var(--line);
  text-decoration: none;
  text-underline-offset: .16em;
}

.contact-consent__link:hover,
.contact-consent__link:focus-visible {
  outline: none;
  text-decoration: underline;
}

.contact-form__status {
  min-height: 15px;
  margin: 7px 2px 0;
  color: #98A5A8;
  font-size: 9px;
  line-height: 1.4;
}

.contact-form__status.is-error {
  color: #E17887;
}

.contact-form__submit {
  display: flex;
  width: 100%;
  height: 35px;
  margin-top: 18px;
  padding: 0 16px;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border: 0;
  border-radius: 6px;
  background: var(--line);
  color: #03100E;
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: filter 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.contact-form__submit svg {
  width: 18px;
  height: 12px;
  flex: 0 0 auto;
}

.contact-form__submit:hover,
.contact-form__submit:focus-visible {
  filter: brightness(1.08);
  outline: none;
  transform: scale(1.012);
  box-shadow: 0 0 22px rgba(17, 210, 170, .2);
}

@media (max-width: 700px) {
  .contact-modal {
    padding: 12px;
    place-items: center;
  }

  .contact-dialog {
    width: calc(100% - 12px);
    max-height: calc(100svh - 24px);
    padding: 24px 16px 18px;
    border: 1px solid rgba(17, 210, 170, .5);
    border-radius: 18px;
  }

  .contact-dialog__close {
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
  }

  .contact-dialog__close span {
    top: 15px;
    left: 8px;
  }

  .contact-dialog__eyebrow {
    margin-bottom: 9px;
  }

  .contact-dialog__header h2 {
    padding-right: 38px;
    font-size: clamp(27px, 7vw, 31px);
  }

  .contact-dialog__header > p:last-child {
    margin-top: 10px;
    font-size: 12px;
    line-height: 1.45;
  }

  .contact-dialog__header > p:last-child br {
    display: none;
  }

  .contact-form {
    margin-top: 16px;
    padding: 12px 11px 8px;
  }

  .contact-form legend {
    margin-bottom: 10px;
    font-size: 12px;
  }

  .contact-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .contact-option {
    height: 84px;
    padding-block: 10px 8px;
  }

  .contact-form--direct {
    padding-bottom: 11px;
  }

  .contact-form--direct .contact-option::after {
    top: 8px;
    right: 9px;
    font-size: 12px;
  }

  .contact-direct-notice {
    margin-top: 12px;
    padding: 12px;
    gap: 10px;
  }

  .contact-direct-notice__icon {
    width: 30px;
    height: 30px;
  }

  .contact-direct-notice__icon svg {
    width: 17px;
    height: 17px;
  }

  .contact-direct-notice strong {
    font-size: 12px;
  }

  .contact-direct-notice p {
    margin-top: 4px;
    font-size: 10px;
    line-height: 1.45;
  }

  .contact-option__icon,
  .contact-option__svg {
    width: 25px;
    height: 25px;
    margin-bottom: 7px;
  }

  .contact-option__svg--mail {
    width: 24px;
    height: 22px;
    margin-top: 1px;
    margin-bottom: 9px;
  }

  .contact-form__divider {
    margin-block: 14px;
  }

  .contact-form__details legend {
    margin-bottom: 11px;
  }

  .contact-form__row {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .contact-field input {
    height: 38px;
  }

  .contact-field textarea {
    height: 76px;
  }

  .contact-field--project {
    margin-top: 10px;
  }

  .contact-consent {
    margin-top: 10px;
  }

  .contact-form__status {
    min-height: 12px;
    margin-top: 5px;
  }

  .contact-form__submit {
    height: 39px;
    margin-top: 14px;
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-modal,
  .contact-dialog,
  .contact-dialog__close,
  .contact-option,
  .contact-form__submit {
    transition: none;
  }
}


/* Larger desktop contact dialog. */
@media (min-width: 701px) {
  .contact-dialog {
    width: min(900px, calc(100vw - 48px));
    padding: 48px 50px 46px;
  }

  .contact-dialog__close {
    top: 22px;
    right: 22px;
    width: 40px;
    height: 40px;
  }

  .contact-dialog__close span {
    top: 19px;
    left: 11px;
    width: 17px;
  }

  .contact-dialog__header {
    padding-inline: 5px;
  }

  .contact-dialog__eyebrow {
    margin-bottom: 16px;
    font-size: 10px;
  }

  .contact-dialog__header h2 {
    font-size: 46px;
  }

  .contact-dialog__header > p:last-child {
    margin-top: 16px;
    font-size: 16px;
  }

  .contact-form {
    margin-top: 30px;
    padding: 23px 21px 15px;
    border-radius: 18px;
  }

  .contact-form legend {
    margin-bottom: 15px;
    font-size: 16px;
  }

  .contact-options {
    gap: 28px;
  }

  .contact-option {
    height: 130px;
    padding: 18px 8px 13px;
    border-radius: 16px;
  }

  .contact-option__icon,
  .contact-option__svg {
    width: 36px;
    height: 36px;
    margin-bottom: 11px;
  }

  .contact-option__svg--mail {
    width: 34px;
    height: 32px;
    margin-top: 2px;
    margin-bottom: 13px;
  }

  .contact-option strong {
    font-size: 16px;
  }

  .contact-option small {
    margin-top: 5px;
    font-size: 9px;
  }

  .contact-form--direct {
    padding-bottom: 21px;
  }

  .contact-direct-notice {
    margin-top: 21px;
    padding: 18px 19px;
    gap: 15px;
    border-radius: 15px;
  }

  .contact-direct-notice__icon {
    width: 40px;
    height: 40px;
  }

  .contact-direct-notice__icon svg {
    width: 22px;
    height: 22px;
  }

  .contact-direct-notice strong {
    font-size: 16px;
  }

  .contact-direct-notice p {
    margin-top: 6px;
    font-size: 13px;
  }

  .contact-form__divider {
    margin: 27px 2px 25px;
    gap: 17px;
    font-size: 13px;
  }

  .contact-form__details legend {
    margin-bottom: 17px;
  }

  .contact-form__row {
    gap: 16px;
  }

  .contact-field > span {
    margin: 0 3px 8px;
    font-size: 13px;
  }

  .contact-field input,
  .contact-field textarea {
    border-radius: 12px;
    font-size: 14px;
  }

  .contact-field input {
    height: 52px;
    padding-inline: 16px;
  }

  .contact-field textarea {
    height: 116px;
    padding: 15px 16px 26px;
  }

  .contact-field--project {
    margin-top: 18px;
  }

  .contact-field__counter {
    right: 13px;
    bottom: 10px;
    font-size: 10px;
  }

  .contact-consent {
    margin-top: 17px;
    gap: 10px;
    font-size: 11px;
  }

  .contact-consent__box {
    width: 20px;
    height: 20px;
  }

  .contact-form__status {
    min-height: 18px;
    margin: 9px 3px 0;
    font-size: 11px;
  }

  .contact-form__submit {
    height: 48px;
    margin-top: 22px;
    gap: 22px;
    border-radius: 8px;
    font-size: 15px;
  }

  .contact-form__submit svg {
    width: 22px;
    height: 15px;
  }
}


/* Regional privacy and mailbox routing. */
.contact-privacy {
  display: grid;
  margin-top: 14px !important;
  gap: 6px;
}

.contact-privacy .contact-consent {
  margin-top: 0;
}

@media (min-width: 701px) {
  .contact-privacy {
    margin-top: 17px !important;
    gap: 8px;
  }
}

