.team-page {
  --team-bg: #faf8f5;
  --team-text: #07121f;
  --team-muted: #2b353f;
  --team-line: #ffbf00;
  --team-divider: rgba(255, 191, 0, 0.78);
  --team-field: #d9d3c8;
  --team-placeholder: #ebe6da;
  --team-card-orange: #cd6f47;
  --team-card-yellow: #d2c64a;
  --team-card-green: #6eb389;
  --team-card-blue: #6d88b7;
  --team-card-red: #c56f7c;
  --team-page-gutter: 20px;
  --team-contact-top-gap: 64px;
  background: var(--team-bg);
  color: var(--team-text);
}

.team-page .hero-section .container,
.team-page .team-section .container,
.team-page .company-contact .container {
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 var(--team-page-gutter);
  box-sizing: border-box;
}

.team-page .hero-section {
  padding: 104px 0 40px;
}

.team-page .hero-section .company-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 620px) minmax(320px, 470px);
  justify-content: space-between;
  align-items: end;
  gap: 48px;
  min-height: 356px;
  padding-bottom: 40px;
  box-sizing: border-box;
}

.team-page .hero-section .company-grid::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--team-line);
  z-index: 10;
  pointer-events: none;
}

.team-page .hero-section .left-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  max-width: 620px;
}

.team-page .hero-section .hero-label {
  margin: 0;
  color: var(--team-line);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.team-page .hero-section .hero-title {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  color: var(--team-text);
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.team-page .hero-section .hero-title .hero-title__line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  letter-spacing: inherit;
}

.team-page .hero-section .hero-title .hero-title__plain {
  display: block;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  color: inherit;
}

.team-page .hero-section .hero-title .border-text {
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  color: #0d0d0d;
  background-color: #ffc600;
  padding: 0 6px;
  display: inline-block;
  margin-bottom: 0;
}

.team-page .hero-section .description {
  max-width: 510px;
  color: var(--team-muted);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
}

.team-page .hero-section .description p {
  margin: 0;
  font-weight: 400;
}

.team-page .hero-section .right-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  width: 100%;
  min-height: 219px;
  padding-bottom: 4px;
}

.team-page .hero-section .company-heading {
  position: relative;
  z-index: 2;
  margin: 0;
  color: var(--team-text);
  font-size: clamp(76px, 7.5vw, 104px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.035em;
  text-align: right;
}

.team-page .hero-section .svg-background {
  position: absolute;
  right: -18px;
  top: -96px;
  width: min(453px, 100%);
  height: 439px;
  background: url(../img/five-back-cubes.svg) center / contain no-repeat;
  opacity: 0.98;
  pointer-events: none;
}

.team-page .hero-section .bottom-line {
  display: none;
}

.team-page .team-section {
  padding: 80px 0 0;
}

.team-page .team-group {
  margin-bottom: 80px;
  padding-bottom: 80px;
  border-bottom: 2px solid var(--team-divider);
}

.team-page .team-group:last-child {
  margin-bottom: 0;
  padding-bottom: 64px;
  border-bottom: 2px solid var(--team-divider);
}

.team-page .team-group__title {
  margin: 0;
  color: var(--team-text);
  font-size: clamp(32px, 3.7vw, 48px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.team-page .team-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  padding-top: 40px;
}

.team-page .person-card {
  --team-card-accent: var(--team-card-orange);
  flex: 0 0 calc((100% - 80px) / 3);
  max-width: calc((100% - 80px) / 3);
  outline: none;
  box-shadow: none;
}

.team-page .team-grid .person-card:nth-child(5n + 1) {
  --team-card-accent: var(--team-card-orange);
}

.team-page .team-grid .person-card:nth-child(5n + 2) {
  --team-card-accent: var(--team-card-yellow);
}

.team-page .team-grid .person-card:nth-child(5n + 3) {
  --team-card-accent: var(--team-card-green);
}

.team-page .team-grid .person-card:nth-child(5n + 4) {
  --team-card-accent: var(--team-card-blue);
}

.team-page .team-grid .person-card:nth-child(5n + 5) {
  --team-card-accent: var(--team-card-red);
}

.team-page .person-card__link {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-decoration: none;
  color: inherit;
  border: none;
  outline: none;
}

.team-page .person-card__photo {
  width: 100%;
  height: 392px;
  border-top: 4px solid var(--team-card-accent);
  border-right: 8px solid var(--team-card-accent);
  border-bottom: 8px solid var(--team-card-accent);
  border-left: none !important;
  box-sizing: border-box;
  overflow: hidden;
  clip-path: polygon(0 0, 98.5% 0, 100% 1.5%, 100% 100%, 1.5% 100%, 0 97%);
  transition: transform 0.22s ease;
}

.team-page .person-card__img,
.team-page .person-card__img--placeholder {
  display: block;
  width: 100%;
  height: 100%;
  border: none;
}

.team-page .person-card__img {
  object-fit: cover;
  object-position: center top;
}

.team-page .person-card__img--placeholder {
  background: var(--team-placeholder) url(../img/five-back-cubes.svg) center / 62% no-repeat;
}

.team-page .person-card__info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
  padding-top: 32px;
}

.team-page .person-card__name {
  margin: 0;
  color: var(--team-text);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.team-page .person-card__job,
.team-page .person-card__email {
  margin: 0;
  font-family: 'Geologica', sans-serif;
  font-size: 18px;
  font-style: normal;
  font-weight: 600;
  line-height: 1.5;
}

.team-page .person-card__job {
  color: #2b353f;
}

.team-page .person-card__email {
  color: #0c1e34;
  word-break: break-word;
}

.team-page .person-card__link:hover .person-card__photo,
.team-page .person-card__link:focus-visible .person-card__photo {
  transform: translateY(-4px);
}

.team-page .person-card__link:hover .person-card__name,
.team-page .person-card__link:focus-visible .person-card__name {
  text-decoration: underline;
  text-decoration-color: var(--team-line);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.team-page .person-card__link:focus-visible {
  outline: none;
}

/* ========================
   COMPANY CONTACT (mirrors career-page)
======================== */

.team-page .company-contact .container {
  padding: 0 var(--team-page-gutter);
  max-width: 1480px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* Bugfix: keep the contact block on the same page gutter as hero/team and stop breakpoint-specific top-gap drift below the yellow divider without introducing a new text-to-form gutter. */
.team-page .company-contact .wrapper {
  display: flex;
  background: transparent;
  padding: var(--team-contact-top-gap) var(--team-page-gutter) 0;
  width: 100%;
  background-color: #faf8f5;
  position: relative;
  margin-bottom: 40px;
}

.team-page .company-contact .wrapper .information {
  flex: 0 1 auto;
  max-width: 600px;
  width: 100%;
  min-width: 0;
  z-index: 1;
}

.team-page .company-contact .wrapper .information .description {
  display: flex;
  flex-direction: column;
  gap: 17px;
  max-width: 436px;
}

.team-page .company-contact .wrapper .information .description .text p {
  font-weight: 400;
}

.team-page .company-contact .wrapper .information .description .list-options {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.team-page .company-contact .wrapper .information .description .list-options .text-option {
  padding: 0;
}

.team-page .company-contact .wrapper .information .description .list-options .list-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.team-page .company-contact .wrapper .information .description .list-options .list-item {
  display: flex;
  position: relative;
}

.team-page .company-contact .wrapper .information .description .list-options .square {
  width: 10px;
  height: 10px;
  background-color: #ffbf00;
  padding-right: 10px;
  margin-top: 10px;
}

.team-page .company-contact .wrapper .information .description .list-options p {
  padding-left: 15px;
  color: #434343;
}

.team-page .company-contact .wrapper .information .description .list-options .list-item:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 24%;
  width: 2px;
  height: 117%;
  background-color: #ffbf00;
}

.team-page .company-contact .wrapper .background {
  width: 100%;
  height: 100%;
  position: absolute;
  background: url(../img/double-cubes-small.svg) no-repeat;
  background-position: left bottom;
  background-size: 100% 30%;
  left: -390px;
  top: 40px;
  z-index: 0;
}

.team-page .company-contact .wrapper .form {
  flex: 1 1 auto;
  padding-bottom: 70px;
  z-index: 10;
  width: 100%;
  min-width: 0;
}

.team-page .company-contact .wrapper .form .wpcf7-list-item {
  margin: 0;
  display: flex;
}

.team-page .company-contact .wrapper .form .wpcf7-list-item input[type='checkbox'] {
  position: relative;
  appearance: none;
  width: 25px;
  height: 25px;
  border: 2px solid #ece6d5;
}

.team-page .company-contact .wrapper .form .wpcf7-list-item input[type='checkbox']:focus-visible,
.team-page .company-contact .wrapper .form .contact-form form .form-check input[type='checkbox']:focus-visible {
  outline: 2px solid #e0cfb7;
  outline-offset: 2px;
}

.team-page .company-contact .wrapper .form .wpcf7-list-item input[type='checkbox']:checked:after {
  content: "";
  position: absolute;
  left: 7px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid #000;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  z-index: 20;
}

.team-page .company-contact .wrapper .form .wpcf7-list-item label {
  display: flex;
}

.team-page .company-contact .wrapper .form .wpcf7-list-item label .wpcf7-list-item-label {
  display: flex;
  margin-left: 32px;
}

.team-page .company-contact .wrapper .form .contact-form {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 35px;
  width: 100%;
  z-index: 10;
}

.team-page .company-contact .wrapper .form .contact-form .spinner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(250, 248, 245, 0.6);
  backdrop-filter: blur(5px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 11;
}

.team-page .company-contact .wrapper .form .contact-form form {
  display: flex;
  padding-left: 60px;
  flex-direction: column;
  justify-content: space-around;
  gap: 17px;
}

.team-page .company-contact .wrapper .form .contact-form form .form-group {
  display: flex;
  flex-direction: column;
  position: relative;
  margin-bottom: 25px;
}

.team-page .company-contact .wrapper .form .contact-form form .form-group label {
  margin-bottom: 10px;
}

.team-page .company-contact .wrapper .form .contact-form form .form-group label span {
  color: #4e5a67;
}

.team-page .company-contact .wrapper .form .contact-form form .send-nda {
  display: flex;
  gap: 16px;
}

.team-page .company-contact .wrapper .form .contact-form form .send-nda input,
.team-page .company-contact .wrapper .form .contact-form form .send-nda label {
  cursor: pointer;
}

.team-page .company-contact .wrapper .form .contact-form form .form-check {
  flex-direction: row;
}

.team-page .company-contact .wrapper .form .contact-form form .form-check input[type='checkbox'] {
  position: relative;
  appearance: none;
  width: 25px;
  height: 25px;
  border: 2px solid #ece6d5;
}

.team-page .company-contact .wrapper .form .contact-form form .form-check input[type='checkbox']:checked {
  border: 2px solid #e0cfb7;
}

.team-page .company-contact .wrapper .form .contact-form form .form-check input:checked::after {
  content: '';
  position: absolute;
  left: 7px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid black;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  z-index: 20;
}

.team-page .company-contact .wrapper .form .contact-form form input {
  height: 60px;
  background: #faf8f5;
  border: 2px solid #ece6d5;
}

.team-page .company-contact .wrapper .form .contact-form form input.wpcf7-submit {
  padding: 16px 24px;
  background-color: #c4cdd8;
  border-color: transparent;
  width: fit-content;
  cursor: pointer;
  margin-top: 33px;
  margin-bottom: 43px;
  color: #0c1e34;
}

.team-page .company-contact .wrapper .form .contact-form form input.wpcf7-submit.button-primary {
  border: 2px solid #ffbf00;
  background-color: transparent;
}

.team-page .company-contact .wrapper .form .contact-form form input.wpcf7-submit.button-primary:hover {
  background-color: #ffbf00;
}

.team-page .company-contact .wrapper .form .contact-form form input.wpcf7-text {
  padding-left: 15px;
}

.team-page .company-contact .wrapper .form .contact-form form input.wpcf7-text,
.team-page .company-contact .wrapper .form .contact-form form textarea.wpcf7-textarea {
  width: 100%;
  margin-top: 6px;
  margin-bottom: 25px;
}

.team-page .company-contact .wrapper .form .contact-form form .is-invalid {
  border: 2px solid #913636;
}

.team-page .company-contact .wrapper .form .contact-form form input::placeholder {
  color: #c4cdd8;
}

.team-page .company-contact .wrapper .form .contact-form form textarea {
  height: 125px;
  padding-left: 15px;
  padding-top: 15px;
  background: #faf8f5;
  border: 2px solid #ece6d5;
  resize: none;
}

.team-page .company-contact .wrapper .form .contact-form form textarea::placeholder {
  color: #c4cdd8;
}

.team-page .company-contact .wrapper .form .contact-form form textarea:focus,
.team-page .company-contact .wrapper .form .contact-form form input:focus {
  outline: #e0cfb7;
  border: 2px solid #e0cfb7;
}

.team-page .company-contact .wrapper .form .contact-form .privacy-text {
  padding-left: 60px;
}

.team-page .company-contact .wrapper .form .contact-form .privacy-text p span {
  cursor: pointer;
}

.team-page .company-contact .wrapper .form .contact-form .privacy-text p span:hover,
.team-page .company-contact .wrapper .form .contact-form .privacy-text p span:focus {
  border-bottom: 2px solid #ffbf00;
}

.team-page .company-contact .wrapper .form .contact-form a {
  cursor: pointer;
  color: #0c1e34;
  font-family: Geologica, sans-serif;
  font-size: 18px;
  font-weight: 600;
}

.team-page .company-contact .wrapper .form .contact-form a:hover {
  border-bottom: 2px solid #ffbf00;
}

.team-page .company-contact .wrapper .form .contact-form button {
  width: fit-content;
}

.team-page .company-contact .wrapper .form .contact-form .invalid-feedback {
  color: #913636;
}

.team-page .company-contact .wrapper .form .contact-form .invalid-feedback {
  position: absolute;
  top: 90px;
}

.team-page .company-contact .wrapper .form .contact-form .invalid-feedback.message {
  position: absolute;
  top: 155px;
}

.team-page .company-contact .wrapper .form .contact-form .wpcf7-file {
  border: none;
}

.team-page .company-contact .wrapper .form .contact-form .wpcf7-file:focus {
  border: none;
}

.team-page .company-contact .wrapper .form .contact-form .remove-file-btn {
  margin-left: auto;
}

.team-page .company-contact .wrapper .form .contact-form .wpcf7-file::-webkit-file-upload-button {
  display: none;
  visibility: hidden;
}

.team-page .company-contact .wrapper .form .contact-form .file-container {
  display: none;
}

.team-page .company-contact .wrapper .form .contact-form .file-container p {
  display: flex;
}

.team-page .company-contact .wrapper .form .contact-form .file-container svg {
  max-width: 24px;
}

.team-page .company-contact .wrapper .form .contact-form .file-image {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.team-page .company-contact .wrapper .form .contact-form .file-image:focus-visible {
  outline: 2px solid #e0cfb7;
  outline-offset: 4px;
}

.team-page .company-contact .wrapper .form .contact-form .file-image::before {
  content: "";
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  background: url("../img/file.svg") center/contain no-repeat;
}

.team-page .company-contact .wrapper .form .contact-form .file-image p:not(.attach-text) {
  display: none;
}

.team-page .company-contact .wrapper .form .contact-form .file-image .attach-text {
  width: auto;
  margin: 0;
}

.team-page .company-contact .wrapper .form .contact-form .file-name {
  width: 100%;
}

/* ========================
   RESPONSIVE
======================== */

@media screen and (max-width: 1500px) {
  .team-page .company-contact {
    margin-right: 0;
    margin-left: 0;
  }
}

@media screen and (max-width: 1320px) {
  .team-page {
    --team-page-gutter: 48px;
  }

  .team-page .hero-section .container,
  .team-page .team-section .container,
  .team-page .company-contact .container {
    padding: 0 var(--team-page-gutter);
  }

  .team-page .company-contact .wrapper {
    padding-top: var(--team-contact-top-gap);
  }

  .team-page .hero-section .company-grid {
    grid-template-columns: minmax(0, 1fr) minmax(240px, 390px);
    gap: 32px;
  }

  .team-page .hero-section .left-content {
    max-width: 680px;
  }

  .team-page .team-grid {
    gap: 32px;
  }

  .team-page .person-card {
    flex-basis: calc((100% - 64px) / 3);
    max-width: calc((100% - 64px) / 3);
  }

  .team-page .person-card__photo {
    height: 360px;
  }
}

@media screen and (max-width: 1250px) {
  .team-page .company-contact .wrapper .information {
    padding: 0;
  }
}

@media screen and (max-width: 1240px) {
  .team-page .hero-section .company-grid {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
    gap: 20px;
  }

  .team-page .hero-section .left-content {
    max-width: 760px;
  }

  .team-page .hero-section .hero-title {
    font-size: clamp(40px, 4.4vw, 52px);
    line-height: 1.14;
  }

  .team-page .hero-section .description {
    max-width: 560px;
  }

  .team-page .hero-section .company-heading {
    font-size: clamp(64px, 6.2vw, 82px);
  }
}

@media screen and (max-width: 1024px) {
  .team-page .hero-section {
    padding-top: 72px;
  }

  .team-page .hero-section .company-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .team-page .hero-section .left-content {
    max-width: 100%;
  }

  .team-page .hero-section .right-content {
    order: -1;
    justify-self: stretch;
    justify-content: flex-start;
    align-items: flex-start;
    min-height: 148px;
    padding-bottom: 0;
  }

  .team-page .hero-section .company-heading {
    text-align: left;
  }

  .team-page .hero-section .svg-background {
    right: 0;
    top: -54px;
    width: 360px;
    height: 300px;
  }

  .team-page .team-section {
    padding-top: 64px;
  }

  .team-page .team-group {
    padding-bottom: 64px;
    margin-bottom: 64px;
  }

  .team-page .person-card {
    flex-basis: calc((100% - 32px) / 2);
    max-width: calc((100% - 32px) / 2);
  }
}

@media screen and (max-width: 1000px) {
  .team-page .company-contact .wrapper {
    max-width: none;
    width: 100%;
    padding: var(--team-contact-top-gap) var(--team-page-gutter) 120px;
    flex-direction: column;
    gap: 30px;
  }

  .team-page .company-contact .wrapper .information {
    max-width: 100%;
    padding: 0 40px 0 0;
  }

  .team-page .company-contact .wrapper .information .description .list-options {
    max-width: 600px;
  }

  .team-page .company-contact .wrapper .background {
    background: url(../img/double-cubes-small.svg) no-repeat;
    background-position: left bottom;
    background-size: 100% 15%;
    left: -80px;
    z-index: 0;
  }

  .team-page .company-contact .wrapper .form {
    padding-bottom: 150px;
    width: 100%;
    max-width: 500px;
    z-index: 10;
  }
}

@media screen and (max-width: 800px) {
  .team-page .company-contact .wrapper {
    gap: 45px;
  }

  .team-page .company-contact .wrapper .information .description {
    gap: 17px;
  }

  .team-page .company-contact .wrapper .information .description h2 {
    margin: 0 0 5px 0;
  }

  .team-page .company-contact .wrapper .background {
    background: url(../img/double-cubes-small.svg) no-repeat;
    background-position: left bottom;
    left: -2px;
    top: 40px;
    z-index: 0;
  }

  .team-page .company-contact .wrapper .form {
    padding-bottom: 120px;
  }

  .team-page .company-contact .wrapper .form .contact-form form {
    gap: 18px;
  }
}

@media (max-width: 767px) {
}

@media screen and (max-width: 640px) {
  .team-page {
    --team-page-gutter: 20px;
  }

  .team-page .hero-section .container,
  .team-page .team-section .container,
  .team-page .company-contact .container {
    padding: 0 var(--team-page-gutter);
  }

  .team-page .company-contact .wrapper {
    padding-top: var(--team-contact-top-gap);
  }

  .team-page .hero-section {
    padding: 40px 0 28px;
  }

  .team-page .hero-section .company-grid {
    gap: 18px;
    padding-bottom: 40px;
  }

  .team-page .hero-section .right-content {
    min-height: 104px;
  }

  .team-page .hero-section .hero-title {
    font-size: 32px;
    gap: 6px;
  }

  .team-page .hero-section .hero-title .hero-title__line {
    gap: 6px;
  }

  .team-page .hero-section .description {
    max-width: 100%;
    font-size: 16px;
  }

  .team-page .hero-section .right-content {
    min-height: 132px;
  }

  .team-page .hero-section .company-heading {
    font-size: 64px;
  }

  .team-page .hero-section .svg-background {
    top: -36px;
    width: 220px;
    height: 180px;
  }

  .team-page .team-section {
    padding-top: 40px;
  }

  .team-page .team-group {
    margin-bottom: 44px;
    padding-bottom: 44px;
  }

  .team-page .team-group:last-child {
    padding-bottom: 40px;
  }

  .team-page .team-group__title {
    font-size: 32px;
  }

  .team-page .team-grid {
    gap: 24px 16px;
    padding-top: 28px;
  }

  .team-page .person-card {
    flex-basis: calc((100% - 16px) / 2);
    max-width: calc((100% - 16px) / 2);
  }

  .team-page .person-card__photo {
    height: auto;
    aspect-ratio: 285 / 310;
  }

  .team-page .person-card__info {
    gap: 6px;
    padding-top: 16px;
  }

  .team-page .person-card__name {
    font-size: 18px;
  }
}

@media screen and (max-width: 500px) {
  .team-page .company-contact .wrapper {
    max-width: 400px;
    width: 100%;
    padding: var(--team-contact-top-gap) var(--team-page-gutter) 0;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 0;
    margin-left: 0;
    margin-right: 0;
  }

  .team-page .company-contact .wrapper .information {
    width: 100%;
    padding: 0;
  }

  .team-page .company-contact .wrapper .information .description {
    max-width: none;
  }

  .team-page .company-contact .wrapper .information .description .list-options {
    display: none;
  }

  .team-page .company-contact .wrapper .background {
    background: url(../img/double-cubes-small.svg) no-repeat;
    background-position: left bottom;
    left: 0;
    top: 0;
    z-index: 0;
  }

  .team-page .company-contact .wrapper .form {
    padding-bottom: 200px;
    width: 100%;
    z-index: 10;
  }

  .team-page .company-contact .wrapper .form .contact-form form {
    padding-left: 0;
  }

  .team-page .company-contact .wrapper .form .contact-form form .form-group:nth-of-type(2) {
    margin-bottom: 20px;
  }

  .team-page .company-contact .wrapper .form .contact-form .privacy-text {
    padding-left: 0;
  }
}

@media screen and (max-width: 480px) {
  .team-page .team-grid {
    gap: 28px;
  }

  .team-page .person-card {
    flex-basis: 100%;
    max-width: 100%;
  }

  .team-page .person-card__photo {
    aspect-ratio: 288 / 310;
  }

  .team-page .person-card__info {
    padding-top: 14px;
  }
}

@media screen and (max-width: 420px) {
  .team-page {
    --team-page-gutter: 16px;
  }

  .team-page .hero-section .container,
  .team-page .team-section .container,
  .team-page .company-contact .container {
    padding: 0 var(--team-page-gutter);
  }

  .team-page .company-contact .wrapper {
    padding-top: var(--team-contact-top-gap);
  }

  .team-page .hero-section .hero-title {
    font-size: 28px;
    gap: 4px;
  }

  .team-page .hero-section .hero-title .hero-title__line {
    gap: 4px;
  }

  .team-page .hero-section .company-heading {
    font-size: 52px;
  }

  .team-page .hero-section .svg-background {
    width: 180px;
    height: 150px;
  }

  .team-page .team-grid {
    gap: 20px 12px;
  }
}

@media screen and (max-width: 400px) {
  .team-page .company-contact .wrapper .form .contact-form form {
    padding-left: 0;
  }

  .team-page .company-contact .wrapper .form .contact-form form .form-group label {
    width: 100%;
  }

  .team-page .company-contact .wrapper .form .contact-form .privacy-text {
    padding-left: 0;
  }
}