:root {
  --contact-container: 1200px;
  --contact-blue: #1746b8;
  --contact-field: #f7f7f7;
  --contact-copy: #222;
}

.contact-page {
  color: var(--contact-copy);
  overflow: hidden;
}

.contact-container {
  width: min(var(--contact-container), calc(100% - 80px));
  margin: 0 auto;
}

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

.site-header .nav a.is-active,
.site-header .nav a.is-active:visited {
  color: var(--contact-blue);
}

.contact-hero {
  padding: 0;
  min-height: 0;
  background: #fff;
}

.contact-hero-inner {
  padding-top: 100px;
  padding-bottom: 100px;
}

.contact-hero h1 {
  max-width: 1070px;
  margin: 0;
  font-size: 60px;
  font-weight: 800;
  line-height: 0.99;
  letter-spacing: 0;
}

.contact-hero h1 span {
  display: block;
}

.contact-hero p {
  max-width: 700px;
  margin: 40px 0 0;
  font-size: 29px;
  font-weight: 700;
  line-height: 1.22;
}

.contact-details {
  padding: 92px 0 116px;
  background: #f7f7f7;
}

.contact-details h2,
.contact-message h2 {
  margin: 0;
  color: var(--contact-blue);
  font-size: 58px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
}

.contact-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  margin-top: 48px;
}

.contact-meta h3 {
  margin: 0;
  font-size: 29px;
  font-weight: 700;
  line-height: 1.2;
}

.contact-email-list {
  display: grid;
  gap: 32px;
  margin-top: 46px;
}

.contact-email-list p {
  margin: 0;
}

.contact-email-list span {
  display: block;
  margin-bottom: 8px;
  color: #555;
  font-size: 20px;
  line-height: 1.25;
}

.contact-email-list a {
  display: inline-block;
  padding-bottom: 6px;
  border-bottom: 1px solid #777;
  color: var(--contact-copy);
  font-size: 29px;
  font-weight: 700;
  line-height: 1.1;
}

.contact-address address {
  max-width: 580px;
  margin-top: 47px;
  font-size: 29px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.38;
}

.contact-message {
  padding: 94px 0 92px;
  background: #fff;
}

.message-form {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 45px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 40px;
}

.message-form input,
.message-form textarea,
.contact-submit,
.material-select-trigger {
  width: 100%;
  min-width: 0;
  border: 0;
  border-radius: 16px;
  font-family: inherit;
  letter-spacing: 0;
}

.form-grid input,
.material-select-trigger {
  height: 80px;
  padding: 0 30px;
  background: var(--contact-field);
  color: #555;
  font-size: 18px;
}

.message-form input::placeholder,
.message-form textarea::placeholder {
  color: #999;
  opacity: 1;
}

.interest-grid {
  display: grid;
  grid-template-rows: repeat(2, auto);
  grid-auto-flow: column;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px 48px;
  min-height: 154px;
  margin: 0;
  padding: 30px;
  border: 0;
  border-radius: 16px;
  background: var(--contact-field);
}

.interest-option {
  display: flex;
  align-items: center;
  min-width: 0;
  color: #9a9a9a;
  font-size: 18px;
  line-height: 1.25;
  cursor: pointer;
}

.contact-page .interest-option {
  font-size: 18px;
}

.interest-option input {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  margin: 0 12px 0 0;
  padding: 0;
  appearance: none;
  border: 1px solid #d2d2d2;
  border-radius: 4px;
  background: #dedede;
}

.interest-option input:checked {
  background: var(--contact-blue);
  border-color: var(--contact-blue);
}

.interest-option input:checked + span {
  color: var(--contact-blue);
  font-weight: 700;
}

.interest-option input:focus-visible {
  outline: 2px solid var(--contact-blue);
  outline-offset: 3px;
}

.material-field {
  position: relative;
  display: block;
  z-index: 1;
}

.material-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  cursor: pointer;
}

.material-field:not(.has-value) .material-select-trigger {
  color: #999;
}

.material-field.has-value .material-select-trigger {
  color: #555;
}

.material-select-chevron {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  margin-left: 24px;
  border-right: 2px solid #d8d8d8;
  border-bottom: 2px solid #d8d8d8;
  transform: translateY(-3px) rotate(45deg);
  transition: transform .2s ease;
}

.material-field.is-open .material-select-chevron {
  transform: translateY(3px) rotate(225deg);
}

.material-select-options {
  display: grid;
  position: absolute;
  z-index: 2;
  top: calc(100% + 10px);
  right: 0;
  left: 0;
  gap: 2px;
  padding: 12px;
  border-radius: 16px;
  background: var(--contact-field);
}

.material-select-options[hidden] {
  display: none;
}

.material-select-options button {
  width: 100%;
  min-height: 52px;
  padding: 0 18px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #999;
  font: inherit;
  font-size: 18px;
  line-height: 1.25;
  text-align: left;
  cursor: pointer;
}

.material-select-options button:hover,
.material-select-options button:focus-visible,
.material-select-options button[aria-selected="true"] {
  background: #fff;
  color: #555;
}

.message-form textarea {
  min-height: 210px;
  padding: 27px 32px;
  background: var(--contact-field);
  color: #555;
  font-size: 18px;
  line-height: 1.3;
  resize: vertical;
}

.contact-submit {
  height: 80px;
  padding: 0 28px;
  background: var(--contact-blue);
  color: #fff;
  font-size: 24px;
  font-weight: 400;
  cursor: pointer;
  transition: background-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

.contact-submit:hover,
.contact-submit:focus-visible {
  background: #2455c5;
  box-shadow: 0 8px 18px rgba(23, 70, 184, .2);
  transform: translateY(-2px);
}

.contact-submit:disabled {
  cursor: wait;
  opacity: .7;
}

.form-status {
  display: block;
  min-height: 20px;
  margin: -10px 0 0;
  padding: 0;
  color: var(--contact-blue);
  font-size: 14px;
  line-height: 20px;
  transition: color .2s ease, background-color .2s ease, padding .2s ease;
}

.form-status[data-state="success"] {
  padding: 12px 16px;
  border-radius: 8px;
  background: #ecfdf3;
  color: #177245;
}

.form-status[data-state="error"] {
  padding: 12px 16px;
  border-radius: 8px;
  background: #fef3f2;
  color: #b42318;
}

@media (max-width: 1280px) {
  .contact-hero h1 {
    font-size: 52px;
  }

  .contact-hero p {
    max-width: 720px;
    margin: 40px 0 0;
    font-size: 25px;
  }

  .contact-details h2,
  .contact-message h2 {
    font-size: 50px;
  }

  .contact-meta h3,
  .contact-email-list a,
  .contact-address address {
    font-size: 25px;
  }

}

@media (min-width: 801px) and (max-width: 1300px) {
  .contact-container {
    width: calc(100% - 80px);
  }

  .contact-hero-inner {
    padding-top: 100px;
    padding-bottom: 100px;
  }

  .contact-details,
  .contact-message {
    padding-top: 100px;
    padding-bottom: 100px;
  }

  .form-grid input,
  .material-select-trigger {
    height: 60px;
  }

  .interest-grid {
    row-gap: 0;
    column-gap: 0;
  }

  .contact-page .interest-option {
    font-size: 16px;
  }
}

@media (max-width: 900px) {
  .contact-container {
    width: calc(100% - 48px);
  }

  .contact-hero {
    min-height: 0;
  }

  .contact-hero-inner {
    padding-top: 72px;
    padding-bottom: 80px;
  }

  .contact-hero h1 {
    font-size: 42px;
    line-height: 1.03;
  }

  .contact-hero p {
    max-width: 700px;
    margin: 44px 0 0;
    font-size: 20px;
    line-height: 1.35;
  }

  .contact-details,
  .contact-message {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .contact-details h2,
  .contact-message h2 {
    font-size: 42px;
  }

  .contact-meta {
    gap: 48px;
    margin-top: 40px;
  }

  .contact-meta h3,
  .contact-email-list a,
  .contact-address address {
    font-size: 22px;
  }

  .contact-email-list span {
    font-size: 16px;
  }

  .contact-email-list,
  .contact-address address {
    margin-top: 32px;
  }

  .interest-grid {
    gap: 24px;
  }

  .interest-option {
    font-size: 15px;
  }

  .contact-page .interest-option {
    font-size: 15px;
  }
}

@media (max-width: 640px) {
  .contact-container {
    width: calc(100% - 36px);
  }

  .contact-hero-inner {
    padding-top: 56px;
    padding-bottom: 64px;
  }

  .contact-hero h1 {
    font-size: 34px;
  }

  .contact-hero p {
    margin-top: 36px;
    font-size: 17px;
  }

  .contact-details,
  .contact-message {
    padding-top: 58px;
    padding-bottom: 58px;
  }

  .contact-message {
    padding-bottom: 20px;
  }

  .contact-details h2,
  .contact-message h2 {
    font-size: 34px;
  }

  .contact-meta {
    grid-template-columns: 1fr;
    gap: 40px;
    margin-top: 36px;
  }

  .contact-meta h3,
  .contact-email-list a,
  .contact-address address {
    font-size: 20px;
  }

  .contact-email-list {
    gap: 26px;
  }

  .contact-address address {
    line-height: 1.45;
  }

  .message-form {
    gap: 20px;
    margin-top: 36px;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .message-form input,
  .message-form textarea,
  .contact-submit,
  .interest-grid,
  .material-select-trigger,
  .material-select-options {
    border-radius: 8px;
  }

  .form-grid input,
  .material-select-trigger {
    height: 64px;
    padding-right: 22px;
    padding-left: 22px;
    font-size: 16px;
  }

  .interest-grid {
    grid-template-rows: none;
    grid-auto-flow: row;
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 22px;
  }

  .interest-option {
    font-size: 15px;
  }

  .material-select-options {
    top: calc(100% + 8px);
    padding: 8px;
  }

  .material-select-options button {
    min-height: 48px;
    padding: 0 14px;
    font-size: 16px;
  }

  .message-form textarea {
    min-height: 180px;
    padding: 22px;
    font-size: 16px;
  }

  .contact-submit {
    height: 64px;
    font-size: 18px;
  }

  .form-status {
    margin-top: -4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-submit {
    transition-duration: .01ms;
  }
}
