@font-face {
  font-family: "GothamRoundedMedium";
  src: url("../assets/fonts/gothamrnd-medium-webfont.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: "GothamRoundedBold";
  src: url("../assets/fonts/gothamrnd-bold-webfont.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: "GothamRoundedBook";
  src: url("../assets/fonts/gothamrnd-book-webfont.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}

html {
  height: 100%;
  -webkit-font-smoothing: subpixel-antialiased;
  --default-padding: 17px;
}

body {
  margin: 0;
  padding: 0;
  color: #000;
  font-family: "GothamRoundedMedium", sans-serif;
  background: #fff;
  background-repeat: no-repeat;
  background-position: left top;
  font-size: 13px;
  -webkit-font-smoothing: antialiased;
  /* font-smoothing: antialiased;  */
  color: #1d1d1f;
}

em {
  font-style: normal;
}

.header a {
  text-decoration: none;
  color: #000;
}

a {
  color: #0059c7;
}

h1,
h2,
h3,
h4 {
  font-weight: normal;
  font-family: "GothamRoundedBold", sans-serif;
}

h1:focus,
h2:focus,
h3:focus {
  box-shadow: 0 0px 10px #ffde00;
  outline: none;
}

.tlowercase {
  text-transform: none !important;
}

.button {
  display: inline-block;
  text-decoration: none;
  text-transform: uppercase;
  border: 2px solid;
  padding: 7px 14px 4px;
  cursor: pointer;
  border-radius: 4px;
  position: relative;
  transform: translateZ(1px);
  transform-style: preserve-3d;
  transform: translateZ(100px);
  transition: all 0.3s ease;
  font-family: "GothamRoundedBold";
}

.b-black {
  color: black;
  border-color: black;
}

.b-black::before,
.b-blue::before,
.b-yellow::before,
.b-yellow::after,
.b-blue-filled::after,
.b-black-filled::after,
.b-blue-filled::before,
.b-black-filled::before,
.b-white::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 0%;
  border-bottom-left-radius: 100%;
  border-bottom-right-radius: 100%;
  transition: all 0.3s ease;
  background-color: #000;
  top: 0%;
  left: 0;
  transform: translateZ(-1px);
  z-index: 0;
  cursor: pointer;
  transform: translateZ(-1px);
  z-index: -1;
}

.b-black:not(.b-input):hover::before,
.b-blue:not(.b-input):hover::before,
.b-yellow:not(.b-input):hover::before,
.b-blue-filled:not(.b-input):hover::before,
.b-black-filled:not(.b-input):hover::before,
.b-white:not(.b-input):hover::before {
  height: 100%;
  border-radius: 0%;
}

.b-black:not(.b-input):hover,
.b-blue:not(.b-input):hover,
.b-yellow:not(.b-input):hover {
  color: white !important;
}

.button:active {
  transform: scale(0.99);
}

.fbold {
  font-family: "GothamRoundedBold";
}

.fmedium {
  font-family: "GothamRoundedMedium";
}

.fbook {
  font-family: "GothamRoundedBook";
}

.bgrey {
  background-color: #edeced;
}

.byellow {
  background-color: #ffde00;
}

.bblue {
  background-color: #3582ba;
  color: white;
}

.bmarine {
  background-color: #4cccd3;
}

.bgreen {
  background-color: #6dae39;
  color: white;
}

.bbordo {
  background-color: #c03764;
  color: white;
}

.bred {
  background-color: #c43538;
  color: white;
}

.bbordo-light {
  background-color: #C13764;
}

.cwhite {
  color: #ffffff;
}

.box {
  display: inline-block;
  padding: 0.3em 1em;
  background: #444;
  color: #fff;
  margin-right: 4px;
}

.on-top {
  transform-style: preserve-3d;
  z-index: 10;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.page__container {
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  /* max-width: 1920px; */
  width: 100%;
  padding: var(--default-padding);
  gap: 17px;
}

.page__image-container {
  overflow: hidden;
  opacity: 0;
}

.page__image-container.--square-container {
  position: relative;
  display: block;
  max-width: 330px;
  margin: 0 auto;
  width: 100%;
}

.page__image {
  object-fit: cover;
  /* aspect-ratio: 1/1; */
  width: 100%;
  height: 100%;
  transition: all 0.3s cubic-bezier(0, 0.5, 0.5, 1.3);
}

.page__image:hover,
.page__image:active {
  transform: scale(1.1);
}

img {
  max-width: 100%;
  max-height: 100%;
}

.header__logo-link {
  display: block;
  width: 152px;
  line-height: 0;
}

#link-to-main-site {
  background-color: #ffde00;
}

.intro {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 17px;
}

.intro__text {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1 1 calc(calc(875px - 100%) * 999);
  padding: calc(2 * var(--default-padding)) var(--default-padding);
  background-color: #ffdd00;
}

.intro__text-title {
  font-size: 50px;
  max-width: 486px;
}

.intro__images {
  /* flex-basis: calc(calc(957px - 100%) * 999); */
  /* flex-grow: 1; */
  flex: 1 1 calc(calc(957px - 100%) * 999);
  display: grid;
  grid-template-columns: 1fr 2fr;
  grid-template-rows: 1fr 1fr;
  grid-template-areas:
    "firstImg secImg"
    "thirdImg secImg";
  align-items: stretch;
  gap: 17px;
}

.intro__img {
  object-fit: cover;
  width: 100%;
}

.page__image-container.--img1 {
  grid-area: firstImg;
}

.page__image-container.--img3 {
  grid-area: secImg;
}

.page__image-container.--img2 {
  grid-area: thirdImg;
}

.people {
  display: grid;
  grid-template-rows: auto 1fr 1fr;
  gap: 17px;
}

.people.--squares {
  grid-template-rows: unset;
}

.people__title {
  font-size: 50px;
  text-align: center;
  padding: 68px var(--default-padding);
}

.people__row {
  display: grid;
  align-items: stretch;
  gap: 17px;
  grid-template-columns: 1fr 2fr;
  grid-column-start: auto;
}

.people__row.--reverse {
  grid-template-columns: 2fr 1fr;
}

.people__row-awards {
  display: flex;
  gap: 17px;
  margin-bottom: 17px;
}

.people__row.--reverse .page__image-container {
  order: 2;
}

.people__row-content {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 51px var(--default-padding);
}

.people__row-name {
  margin-bottom: 35px;
}

.people__row-position {
  margin-bottom: 30px;
}

.people__row-text {
  text-align: center;
  max-width: 658px;
  margin-bottom: 30px;
  font-size: 16px;
}

/* .people__row-img {
    object-fit: cover;
    aspect-ratio: 1/1;
    width: 100%;
} */

.people__row-name {
  font-size: 45px;
}

.people__row-buttons {
  display: flex;
  gap: 10px;
}

.people__squares {
  display: grid;
  grid-auto-flow: row;
  grid-template-columns: repeat(auto-fit, minmax(440px, 1fr));
  gap: 17px;
}

.people__squares.--four {
  grid-template-columns: repeat(4, 1fr);
}

.people__square {
  position: relative;
}

/* .people__square-img {
    display: block;
    position: relative;
    max-width: 330px;
    margin: 0 auto;
    width: 100%;
} */

.people__square-content {
  position: relative;
  padding: var(--default-padding);
  transform: translateZ(100px);
}

.people__square-content::before {
  content: "";
  position: absolute !important;
  top: -100px;
  bottom: 0;
  left: 0px;
  width: 100%;
  height: 200px;
  -webkit-backdrop-filter: blur(20px);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 45%);
  backdrop-filter: blur(20px);
  mask-image: linear-gradient(to bottom, transparent 0%, black 45%);
}

.people__square-name {
  font-size: 28px;
  margin-bottom: 30px;
}

.people__square-position {
  margin-bottom: 15px;
}

.security__block {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: #EDECED;
  padding: 30px;
}
.security__block > h3 {
  font-size: 50px;
  margin-bottom: 45px;
}

.big-square {
  max-height: 405px;
  grid-column: span 2;
  display: flex;
}

.big-square > .page__image-container {
  flex: 1;
  max-width: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
}
.big-square > .page__image-container > img {
  max-width: 440px;
  position: relative;
  padding-bottom: 20px;
}

.big-square > .page__image-container::before {
  content: "";
  position: absolute !important;
  z-index: 1;
  bottom: -90px;
  left: 0px;
  width: 100%;
  height: 200px;
  background: linear-gradient(to top, #C13764, 90%, transparent 100%);
  -webkit-backdrop-filter: blur(20px);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 45%);
  backdrop-filter: blur(20px);
  mask-image: linear-gradient(to bottom, transparent 0%, black 45%);
}

.big-square > .people__square-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.big-square > .people__square-content > .box {
  width: fit-content;
}

.big-square > .people__square-content::before {
  display: none;
}

.footer {
  background-color: black;
  color: white;
  padding: calc(2 * var(--default-padding));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 50px;
}

.footer__logo {
  max-width: 97px;
}

.footer__socials {
  text-align: center;
}

.footer__socials-title {
  margin-bottom: 17px;
}

.footer__socials-items {
  display: flex;
  gap: 17px;
}

.footer__social-img {
  max-width: 25px;
  width: 100%;
  filter: invert();
}

.animate-self {
  animation: fadeinandscale 0.3s cubic-bezier(0, 0.5, 0.5, 1.3) forwards;
}

@keyframes fadeinandscale {
  0% {
    opacity: 0;
    transform: scale(0.8) translateZ(100px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateZ(100px);
  }
}

@media screen and (max-width: 1000px) {
  .people__title {
    font-size: 40px;
  }

  .people__row,
  .people__row.--reverse {
    grid-template-columns: unset;
    grid-template-rows: 1fr 1fr;
  }

  .people__row.--reverse .page__image-container {
    order: unset;
  }
}

@media screen and (max-width: 1600px) {
  .people__squares.--four {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 1390px) {
  .people__squares {
    grid-template-columns: 1fr 1fr;
  }
  .security__block {
    grid-column: span 2;
  }
  .big-square {
    grid-column: span 2;
  }
}

@media screen and (max-width: 800px) {
  .people__squares {
    grid-template-columns: 1fr;
  }
  .security__block {
    grid-column: span 1;
  }
  .big-square {
    grid-column: span 1;
    flex-direction: column;
    max-height: 100%;
    padding-top: 17px;
  }
  .big-square > .page__image-container {
    flex: 1;
    overflow: inherit;
  }
  .big-square > .page__image-container > img {
    max-width: 330px;
    position: static;
    padding-bottom: 0px;
  }
  
  .big-square > .page__image-container::before {
    display: none;
  }
  .big-square > .people__square-content::before {
    display: block;
  }
}

@media screen and (max-width: 600px) {
  .intro__text-title {
    font-size: 35px;
  }

  .people__title {
    font-size: 30px;
  }
}

@media screen and (min-width: 1800px) {
  .people__squares {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media screen and (max-width: 340px) {
  .intro__text-title {
    font-size: 30px;
  }
  .people__row-name {
    font-size: 40px;
  }
}