@charset "UTF-8";
/* Reset and base styles  */
* {
  padding: 0px;
  margin: 0px;
  border: none;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Links */
a, a:link, a:visited {
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

/* Common */
aside, nav, footer, header, section, main {
  display: block;
}

h1, h2, h3, h4, h5, h6, p {
  font-size: inherit;
  font-weight: inherit;
}

ul, ul li {
  list-style: none;
}

img {
  vertical-align: top;
}

img, svg {
  max-width: 100%;
  height: auto;
}

address {
  font-style: normal;
}

/* Form */
input, textarea, button, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background-color: transparent;
}

input::-ms-clear {
  display: none;
}

button, input[type=submit] {
  display: inline-block;
  box-shadow: none;
  background-color: transparent;
  background: none;
  cursor: pointer;
}

input:focus, input:active,
button:focus, button:active {
  outline: none;
}

button::-moz-focus-inner {
  padding: 0;
  border: 0;
}

label {
  cursor: pointer;
}

legend {
  display: block;
}

input[type=file] {
  max-width: 100%;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Убирает стрелочки в Firefox */
input[type=number] {
  -moz-appearance: textfield;
}

/* Подключение шрифтов */
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/Montserrat-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/Montserrat-Light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/Montserrat-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/Montserrat-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/Montserrat-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
/* Основные стили */
:root {
  --font-family: "Montserrat", sans-serif;
}

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

body {
  font-family: var(--font-family);
  min-width: 320px;
  overflow-x: hidden !important;
  overflow-anchor: none !important;
  background: #000;
}

/* Стили контейнера готовы. Их не трогаем ни на каком разрешении */
.container {
  max-width: 1540px;
  padding: 0 30px;
  margin: 0 auto;
  box-sizing: content-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
}

.person_wrap {
  padding-top: 80px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  position: relative;
}
.person__item {
  border-radius: 42px;
  position: relative;
  overflow: hidden;
  padding: 42px;
  background: #151515;
}
.person__item-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.person__item-bg {
  position: absolute;
  right: 0;
  top: 0;
  z-index: 1;
}
.person__item-wrap {
  position: relative;
  z-index: 2;
}
.person__item-name {
  font-weight: 700;
  font-size: 54px;
  line-height: 100%;
  color: #fff;
}
.person__item-post {
  padding-top: 12px;
  font-weight: 500;
  font-size: 24px;
  line-height: 120%;
  color: #b78a42;
}
.person__item-about {
  padding-top: 32px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}
.person__item-about.one {
  grid-template-columns: 1fr;
}
.person__item-about.one .person__item-text:nth-child(2) {
  display: none;
}
.person__item-text {
  border: 1px solid #b78a42;
  border-radius: 18px;
  padding: 24px;
  font-weight: 500;
  font-size: 17px;
  line-height: 120%;
  color: #fff;
  background: #151515;
}
.person__item-contacts {
  padding-top: 34px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  grid-template-areas: "tel qr" "mail qr";
}
.person__item-block {
  background: #fff;
  border-radius: 18px;
  padding: 24px;
  cursor: pointer;
  transition: 0.3s;
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 16px;
  grid-area: tel;
}
.person__item-block span {
  font-weight: 600;
  font-size: 22px;
  line-height: 120%;
  color: #000;
  transition: 0.3s;
  padding-top: 4px;
  display: block;
}
.person__item-links {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.person__item-link {
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 22px;
  line-height: 120%;
  color: #000;
}
.person__item-link:hover {
  color: #b78a42;
}
.person__item-copy {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  width: max-content;
}
.person__item-block.person-email {
  grid-area: mail;
}
.person__item-block.person-email .email-hover {
  opacity: 0;
  transition: 0.3s;
  visibility: hidden;
}
.person__item-block.person-email .email-copy {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: none;
}
.person__item-block.person-email:hover .email-hover {
  opacity: 1;
  visibility: visible;
}
.person__item-block.person-email.copy .email-hover {
  opacity: 0;
  visibility: hidden;
}
.person__item-block.person-email.copy .email-copy {
  display: block;
}
.person__item-descr {
  font-weight: 500;
  font-size: 16px;
  line-height: 120%;
  color: #98a4a6;
  padding-bottom: 4px;
}
.person__item-qr {
  grid-area: qr;
}
.person-footer {
  padding-top: 40px;
  padding-bottom: 80px;
  display: grid;
  grid-template-columns: 1fr 3fr 1fr;
  gap: 113px;
}
.person-footer__logo {
  cursor: pointer;
}
.person-footer__contacts {
  display: flex;
  align-items: center;
  gap: 42px;
}
.person-footer__contacts-item {
  flex-shrink: 0;
}
.person-footer__contacts-name {
  font-weight: 500;
  font-size: 16px;
  line-height: 140%;
  color: #9ba2a3;
}
.person-footer__contacts-link {
  display: block;
  padding-top: 8px;
  font-weight: 600;
  font-size: 20px;
  line-height: 120%;
  color: #fff;
  cursor: pointer;
  transition: 0.3s;
}
.person-footer__contacts-link:hover {
  color: #b78a42;
}
.person-footer__social {
  display: flex;
  align-items: center;
  gap: 16px;
}
.person-footer__social-item {
  flex-shrink: 0;
  width: 56px;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 52px;
  border: 1px solid #343d3e;
  transition: 0.3s;
}
.person-footer__social-item path {
  transition: 0.3s;
}
.person-footer__social-item:hover {
  background: #fff;
}
.person-footer__social-item:active {
  background: #b78a42;
}
.person-footer__social-item:active path {
  fill: #fff;
}
.person-footer__social-item:active .path {
  fill: #b78a42;
}
.person-btn {
  position: absolute;
  z-index: 3;
  top: 112px;
  left: 32px;
  display: flex;
  border: 1px solid #b78a42;
  border-radius: 18px;
  padding: 18px 20px;
  gap: 10px;
  cursor: pointer;
  transition: 0.3s;
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 17px;
  line-height: 120%;
  color: #fff;
}
.person-btn path {
  transition: 0.3s;
}
.person-btn:hover {
  background: #b78a42;
}
.person-btn:hover path {
  fill: #fff;
}

.wrapper {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
  opacity: 0;
  visibility: hidden;
  background: rgba(0, 0, 0, 0.4);
}

.wrapper.open {
  opacity: 1;
  visibility: visible;
}

.wrapper.open .video {
  transform: translateY(0);
}

.video {
  border-radius: 30px;
  max-width: 80vw;
  max-height: 90vh;
  transition: 0.3s;
  transform: translateY(200px);
}

@media (max-width: 1390px) {
  .person__item-about {
    grid-template-columns: 1fr;
  }
  .person__item-contacts {
    grid-template-columns: 325px 1fr;
  }
  .person-footer {
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "contacts contacts" "logo social";
    justify-content: space-between;
    gap: 32px;
  }
  .person-footer__logo {
    grid-area: logo;
  }
  .person-footer__contacts {
    justify-content: space-between;
    grid-area: contacts;
  }
  .person-footer__social {
    grid-area: social;
    justify-content: right;
  }
}
@media (max-width: 1160px) {
  .person__item:first-child {
    aspect-ratio: 1/1.25;
  }
  .person__item-block {
    padding: 18px;
    height: max-content;
  }
  .person__item-block span {
    font-size: 20px;
  }
  .person__item-descr {
    font-size: 14px;
  }
  .person__item-contacts {
    grid-template-columns: 1fr;
    grid-template-areas: "tel" "mail" "qr";
  }
  .person__item-qr {
    width: 50%;
  }
}
@media (max-width: 960px) {
  .person_wrap {
    padding-top: 60px;
    grid-template-columns: 1fr;
  }
  .person__item:first-child {
    aspect-ratio: 1.25/1;
  }
  .person__item-bg {
    aspect-ratio: 1/1.312;
    right: -20px;
    top: -40px;
  }
  .person__item-name {
    font-size: 42px;
  }
  .person__item-post {
    padding-top: 10px;
    font-size: 18px;
  }
  .person__item-text {
    font-size: 16px;
    padding: 18px;
  }
  .person__item-contacts {
    grid-template-columns: 3fr 1fr;
    grid-template-areas: "tel qr" "mail qr";
  }
  .person__item-qr {
    width: 100%;
  }
  .person-footer {
    gap: 24px;
    padding-top: 32px;
    padding-bottom: 60px;
  }
  .person-footer__logo {
    width: 236px;
    height: 81px;
  }
  .person-footer__contacts-name {
    font-size: 15px;
  }
  .person-footer__contacts-link {
    font-size: 18px;
  }
  .person-footer__social-item {
    width: 46px;
  }
  .person-footer__social-item svg {
    width: 28px;
    aspect-ratio: 1;
  }
  .person-btn {
    position: static;
    justify-content: center;
  }
}
@media (max-width: 740px) {
  .person_wrap {
    padding-top: 32px;
  }
  .person__item {
    border-radius: 18px;
    padding: 20px;
  }
  .person__item-bg {
    aspect-ratio: auto;
    width: 39%;
    height: 17%;
    right: 0;
    top: 0;
  }
  .person__item-name {
    font-size: 24px;
  }
  .person__item-post {
    padding-top: 6px;
    font-size: 14px;
  }
  .person__item-about {
    padding-top: 20px;
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .person__item-text {
    border-radius: 12px;
    font-size: 14px;
    padding: 16px;
  }
  .person__item-contacts {
    padding-top: 18px;
    grid-template-columns: 1fr;
    gap: 10px;
    grid-template-areas: "tel" "mail" "qr";
  }
  .person__item-block {
    border-radius: 12px;
    padding: 14px;
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .person__item-block span {
    font-size: 16px;
  }
  .person__item-descr {
    font-size: 13px;
  }
  .person__item-qr {
    margin-top: 8px;
    width: 50%;
  }
  .person-footer {
    padding-bottom: 32px;
    grid-template-columns: 1fr;
    grid-template-areas: "contacts" "social" "logo";
    justify-content: center;
  }
  .person-footer__logo {
    width: 165px;
    height: 57px;
    justify-self: center;
  }
  .person-footer__contacts {
    grid-column: span 1;
    flex-wrap: wrap;
    justify-content: center;
    flex-direction: column;
    gap: 14px;
  }
  .person-footer__contacts-item {
    text-align: center;
  }
  .person-footer__contacts-name {
    font-size: 14px;
  }
  .person-footer__contacts-link {
    font-size: 16px;
    padding-top: 6px;
  }
  .person-footer__social {
    justify-content: center;
    gap: 14px;
  }
  .person-footer__social-item {
    width: 36px;
  }
  .person-footer__social-item svg {
    width: 22px;
  }
}
@media (max-width: 460px) {
  .person__item-qr {
    width: 100%;
  }
}