@font-face {
  font-family: icomoon;
  src:
    url(../fonts/icomoon.woff2) format("woff2"),
    url(../fonts/icomoon.woff) format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: block;
}

:root {
  --font: sofia-pro, "Helvetica Neue", Arial, sans-serif;
  --gray: #adadad;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  position: relative;
  overflow-x: hidden;
  font-family: var(--font);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.94;
  color: #000;
  background-color: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 0;
  font-weight: 700;
  letter-spacing: 0;
  word-break: break-word;
}

h1 {
  font-size: 90px;
  line-height: 110px;
  margin-bottom: 30px;
}

h2 {
  font-size: 58px;
  line-height: 66px;
  margin-bottom: 21px;
}

h3 {
  font-size: 38px;
  line-height: 50px;
  margin-bottom: 19px;
}

h4 {
  font-size: 26px;
  line-height: 36px;
  margin-bottom: 14px;
}

@media (max-width: 767.98px) {
  h1 {
    font-size: 67.5px;
    line-height: 82.5px;
  }
  h2 {
    font-size: 43.5px;
    line-height: 49.5px;
  }
  h3 {
    font-size: 28.5px;
    line-height: 37.5px;
  }
}

p {
  margin: 0 0 20px;
}

a {
  color: #000;
  text-decoration: underline;
}

a:hover {
  color: rgba(0, 0, 0, 0.5);
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.icon::after,
.main ul li::before {
  font-family: icomoon, sans-serif;
  font-weight: 400;
  font-style: normal;
  speak: never;
  -webkit-font-smoothing: antialiased;
}

/* Layout */

.container {
  width: 100%;
  padding-left: 25px;
  padding-right: 25px;
}

@media (min-width: 992px) {
  .container {
    padding-left: 90px;
    padding-right: 90px;
  }
}

.main > .page-header {
  padding-top: 40px;
}

/* Lists in content */

.main ol,
.main ul {
  padding-left: 30px;
  margin: 0 0 20px;
  list-style: none;
}

.main ol li,
.main ul li {
  position: relative;
  font-size: 22px;
  line-height: 38px;
  margin-bottom: 8px;
  font-weight: 300;
}

.main ul li::before {
  content: "\e624";
  position: absolute;
  top: 0;
  left: -30px;
  font-size: 16px;
  line-height: 38px;
}

.main ol {
  counter-reset: li;
}

.main ol li {
  counter-increment: li;
}

.main ol li::before {
  content: counter(li) ".";
  position: absolute;
  left: -30px;
}

/* Header */

.site-header {
  position: relative;
  z-index: 3;
  background-color: #fff;
}

.navbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 40px 0 20px;
}

.logo {
  flex-grow: 1;
}

.logo a {
  display: inline-block;
  padding: 15px 0;
}

.logo img {
  width: 261px;
  height: 42px;
}

.nav-menu {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-menu a {
  display: block;
  padding: 20px 15px;
  font-size: 22px;
  line-height: 22px;
  font-weight: 700;
  text-decoration: none;
  color: #000;
}

.nav-menu a:hover {
  text-decoration: underline;
  color: #000;
}

.nav-menu .nav-secondary,
.nav-menu .nav-baldwin {
  display: none;
}

.nav-toggle {
  display: none;
  line-height: 22px;
}

.nav-toggle .icon::after {
  content: "\e609";
  font-size: 24px;
  vertical-align: middle;
}

@media (min-width: 992px) {
  .logo a {
    padding: 0;
  }
}

@media (max-width: 991.98px) {
  .nav-toggle {
    display: block;
    position: relative;
    z-index: 3;
  }

  .nav-collapse {
    display: none;
  }

  body.open-menu {
    overflow: hidden;
  }

  body.open-menu .nav-toggle {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 70px;
    padding: 5px 25px;
    text-align: right;
    background-color: #fff;
  }

  body.open-menu .nav-toggle .icon::after {
    content: "\e616";
    font-size: 14px;
    font-weight: 700;
  }

  body.open-menu .nav-collapse {
    display: block;
    position: fixed;
    z-index: 2;
    top: 70px;
    right: 0;
    bottom: 0;
    left: 0;
    overflow-y: auto;
    padding-bottom: 70px;
    background-color: #fff;
  }

  body.home.open-menu .nav-toggle,
  body.home.open-menu .nav-collapse {
    background-color: #000;
  }

  .nav-menu {
    flex-direction: column;
    padding: 0 20px 10px;
  }

  .nav-menu a {
    padding: 15px 0;
  }

  .nav-menu .nav-last {
    margin-bottom: 76px;
  }

  .nav-menu .nav-secondary {
    display: block;
  }

  .nav-menu .nav-secondary a {
    padding: 0;
    font-size: 14px;
    line-height: 38px;
    font-weight: 300;
    color: var(--gray);
  }

  .nav-menu .nav-baldwin {
    display: block;
    margin-top: 20px;
  }

  .nav-menu .nav-baldwin a {
    padding: 0;
  }

  .nav-menu .nav-baldwin img {
    max-width: 25px;
  }
}

/* Footer (vertical legal strip on the right) */

.site-footer {
  display: none;
}

@media (min-width: 992px) {
  .site-footer {
    display: flex;
    position: absolute;
    bottom: 170px;
    right: -80px;
  }
}

.footer-legal {
  display: flex;
  align-items: center;
  transform: rotate(90deg);
}

.footer-legal ul {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-legal li {
  padding-right: 15px;
}

.footer-legal li a {
  font-size: 14px;
  line-height: 14px;
  font-weight: 300;
  color: var(--gray);
  text-decoration: none;
}

.footer-legal li a:hover {
  text-decoration: underline;
}

.footer-language {
  padding-right: 10px;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
}

.footer-baldwin img {
  height: 25px;
  width: auto;
  transform: rotate(-90deg);
}

/* Home */

body.home {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100vh;
  min-height: 480px;
  padding-bottom: 70px;
  background-color: #000;
}

.home .site-header,
.home .nav-toggle,
.home .nav-collapse {
  background-color: #000;
}

.home .nav-menu a,
.home .nav-toggle,
.home .footer-language {
  color: #fff;
}

.home .nav-menu .nav-secondary a {
  color: var(--gray);
}

.home .wrap {
  display: flex;
  flex-grow: 1;
  align-items: center;
}

.home .page-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  padding-top: 0;
}

.home .page-header::before {
  content: "";
  display: block;
  flex-basis: 100%;
  width: 121px;
  height: 121px;
  margin: 0 0 45px;
  background: url(../img/dots.png) no-repeat;
  background-size: 121px;
}

.home .page-header::after {
  content: "";
  width: 31px;
  height: 31px;
  margin-left: -31px;
  border-radius: 50%;
  background-color: #fff;
}

.home .page-header h1 {
  width: 264px;
  margin-bottom: 0;
  font-size: 48px;
  line-height: 55px;
  color: #fff;
}

@media (min-width: 992px) {
  .home .wrap {
    justify-content: flex-end;
    align-items: flex-end;
    padding: 0 200px 10px;
  }

  .home .page-header {
    flex-wrap: nowrap;
    justify-content: flex-end;
  }

  .home .page-header::before {
    flex-basis: auto;
    margin: 0 70px 0 0;
  }

  .home .page-header::after {
    margin-left: 0;
  }

  .home .page-header h1 {
    width: 340px;
    font-size: 58px;
    line-height: 66px;
  }
}

/* Shared inner page widths */

.template-about,
.template-products,
.template-contact {
  min-height: 100vh;
}

@media (min-width: 768px) {
  .template-legal .wrap {
    padding: 0 90px;
  }
}

@media (min-width: 992px) {
  .template-legal .wrap,
  .template-products .wrap,
  .template-contact .wrap {
    padding: 0 220px;
  }

  .template-about .wrap {
    padding: 0 110px;
  }
}

@media (min-width: 1500px) {
  .template-about .wrap {
    padding: 0 220px;
  }
}

.template-legal .main {
  padding-bottom: 60px;
}

/* Tabs (about + products) */

.theme-content-area {
  margin-bottom: 60px;
}

.tab-list {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.template-products .tab-list {
  margin-bottom: 0;
}

.tab {
  padding: 0;
  margin-right: 30px;
  text-align: left;
}

.tab h3 {
  margin-bottom: 19px;
}

.tab:hover h3,
.tab[aria-selected="true"] h3 {
  text-decoration: underline;
}

.tab h3::after,
.team-name::after {
  content: "\e616";
  display: inline-block;
  margin-left: 12px;
  font-family: icomoon, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: inherit;
  vertical-align: middle;
  transform: rotate(45deg);
}

.tab[aria-selected="true"] h3::after {
  transform: none;
}

.tab-panel {
  animation: fade-in 0.15s linear;
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
}

@media (min-width: 768px) {
  .template-about .tab-panel {
    display: flex;
  }

  .template-about .tab-description {
    width: 80%;
  }
}

@media (max-width: 1199.98px) {
  .template-about .page-header {
    padding-top: 0;
  }

  .template-about .page-header h1 {
    font-size: 48px;
    line-height: 64px;
  }

  .template-about .tab {
    width: 100%;
  }

  .template-about .tab-description p,
  .template-about .tab-description li {
    font-size: 18px;
    line-height: 34px;
  }
}

@media (min-width: 1500px) {
  .template-about .tab-description {
    width: 55%;
  }
}

@media (max-width: 991.98px) {
  .template-products .page-header {
    padding-top: 0;
  }

  .template-products .page-header h1 {
    font-size: 48px;
    line-height: 64px;
  }

  .template-products .tab {
    width: 100%;
  }

  .template-products .tab-description p {
    font-size: 18px;
    line-height: 34px;
  }
}

@media (min-width: 992px) {
  .template-products .tab {
    margin-right: 40px;
  }

  .template-products .tab-panel {
    display: flex;
  }

  .template-products .tab-description {
    width: 50%;
    margin-right: 100px;
  }

  .template-products .tab-image {
    width: 40%;
  }
}

@media (min-width: 1500px) {
  .template-products .tab {
    margin-right: 100px;
  }

  .template-products .tab-description {
    margin-right: 140px;
  }
}

/* Team */

.team-items {
  position: relative;
}

.team-image {
  margin-bottom: 30px;
}

.team-name {
  display: inline-block;
  padding: 0;
  margin-bottom: 14px;
  font-size: 26px;
  line-height: 36px;
  font-weight: 700;
  text-align: left;
}

.team-description,
.close-team {
  display: none;
}

.team-item.active {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  background-color: #fff;
}

.team-item.active .team-info {
  display: flex;
  flex-wrap: wrap;
}

.team-item.active .team-name {
  flex-basis: 80%;
  padding-bottom: 15px;
  line-height: 26px;
  cursor: auto;
}

.team-item.active .team-name::after {
  transform: none;
}

.team-item.active .team-description {
  display: block;
  flex-basis: 80%;
}

.team-item.active .close-team {
  display: block;
  font-size: 22px;
}

.close-team:hover {
  text-decoration: underline;
}

@media (max-width: 1199.98px) {
  .team-image {
    width: 80%;
  }
}

@media (max-width: 767.98px) {
  .team-item.active {
    position: static;
    height: auto;
  }

  .team-item.active .close-team {
    margin-bottom: 30px;
  }
}

@media (min-width: 768px) {
  .team-items {
    display: flex;
  }

  .team-item {
    display: flex;
    flex: 1 1 0;
    flex-wrap: wrap;
    align-items: flex-start;
    margin-right: 30px;
  }

  .team-image {
    margin-bottom: 28px;
  }

  .team-item.active {
    flex-wrap: nowrap;
  }

  .team-item.active .team-image {
    flex: 0 0 30%;
    width: auto;
    padding-right: 30px;
  }

  .team-item.active .team-info {
    flex: 0 0 70%;
  }

  .team-item.active .close-team {
    position: absolute;
    top: 0;
    right: 0;
  }
}

@media (min-width: 1500px) {
  .team-item {
    margin-right: 115px;
  }
}

/* Contact */

.template-contact .theme-content-area > p {
  font-size: 18px;
}

.template-contact .theme-content-area a {
  text-decoration: none;
}
