@import url("https://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,600,700,300,800&display=swap");

@font-face {
  font-family: "Philosopher";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/philosopher-400.ttf") format("truetype");
}

@font-face {
  font-family: "Philosopher";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/philosopher-700.ttf") format("truetype");
}

:root {
  --c-primary: #54cde7;
  --c-primary-hover: #38bbd7;
  --c-dark: #353648;
  --c-dark-2: #292b38;
  --c-muted: #8c9aaa;
  --c-muted-2: #646686;
  --c-panel: #47485f;
  --c-line: #c8cfd7;
  --c-bg: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  overflow-y: scroll;
  background: var(--c-bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 91px 0 0;
  font-family: "Open Sans", "Segoe UI", Arial, sans-serif;
  font-size: 13px;
  line-height: 24px;
  color: var(--c-muted);
  background: var(--c-bg);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 10px;
  clear: both;
  line-height: 1.6em;
  color: var(--c-dark);
  font-family: "Philosopher", Georgia, serif;
  font-weight: 400;
}

h2 {
  font-family: "Open Sans", "Segoe UI", Arial, sans-serif;
  font-size: 30px;
  font-weight: 300 !important;
  color: var(--c-line);
}

h3 {
  font-size: 24px;
  font-weight: 500;
}

h4 {
  font-size: 22px;
  font-weight: 400;
}

h5 {
  font-family: "Open Sans", "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  text-transform: uppercase;
  font-weight: 400;
}

h6 {
  font-family: "Open Sans", "Segoe UI", Arial, sans-serif;
  font-size: 17px;
}

p {
  margin: 0 0 25px;
}

a {
  color: var(--c-primary);
  text-decoration: none;
}

a:hover {
  color: var(--c-primary-hover);
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1170px, 92vw);
  margin-inline: auto;
}

.center {
  text-align: center;
}

.space10,
.space20,
.space30,
.space40,
.space50,
.space60 {
  clear: both;
  width: 100%;
}

.space10 {
  height: 10px;
}

.space20 {
  height: 20px;
}

.space30 {
  height: 30px;
}

.space40 {
  height: 40px;
}

.space50 {
  height: 50px;
}

.space60 {
  height: 60px;
}

.header {
  background: #fff;
}

.logo {
  width: auto;
  height: 34px;
}

.navbar {
  width: 100%;
  font-size: 15px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.navbar-fixed-top {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
}

.navbar-inner {
  min-height: 91px;
  background: rgba(255, 255, 255, 0.98);
}

.header-layout {
  min-height: 91px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 1.2rem;
}

.navbar .nav {
  margin: 0;
  padding: 0;
  list-style: none;
  justify-self: end;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: max-content;
}

.navbar .nav > li > a {
  display: block;
  line-height: 35px;
  color: var(--c-muted);
  padding: 28px 20px;
}

.navbar .nav > li:hover > a {
  color: #fff;
  background: var(--c-panel);
}

.navbar .nav > li.active > a {
  color: var(--c-primary);
}

.navbar .nav > li.active > a:hover {
  color: #fff;
}

.parallax {
  --parallax-y: 0px;
  --parallax-scale: 1.16;
  --parallax-overlay: rgba(53, 54, 72, 0.46);
  position: relative;
  width: 100%;
  height: 260px;
  margin: 0;
  color: #fff;
  text-transform: uppercase;
  overflow: hidden;
  isolation: isolate;
}

.parallax::before,
.parallax::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.parallax::before {
  inset: -14% 0;
  background-image: var(--parallax-image);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  transform: translate3d(0, var(--parallax-y), 0) scale(var(--parallax-scale));
  transform-origin: center;
  will-change: transform;
  z-index: -2;
}

.parallax::after {
  background: linear-gradient(var(--parallax-overlay), var(--parallax-overlay));
  z-index: -1;
}

#parallax-one,
#parallax-three,
#parallax-two {
  height: 400px;
}

#parallax-two {
  --parallax-image: url("../img/project-2.jpg");
}

#parallax-one {
  --parallax-image: url("../img/project-1.jpg");
}

#parallax-three {
  --parallax-image: url("../img/project-4.jpg");
}

.parallax .parallax-text-container {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  text-align: center;
}

.parallax-text-item {
  font-weight: 700;
  font-size: 36px;
  line-height: 1em;
}

.parallax h2,
.parallax h3 {
  margin: 0;
  color: #fff;
  background: transparent;
  font-family: "Open Sans", "Segoe UI", Arial, sans-serif;
}

.parallax h2 {
  font-size: 52px;
}

.parallax h3 {
  margin-top: 10px;
  font-size: 20px;
}

.content-section {
  background: #fff;
}

.header[id],
.content-section[id],
.h2-container[id],
.footer[id] {
  scroll-margin-top: 108px;
}

.h2-container {
  position: relative;
  margin: 0;
  padding: 0;
  text-align: center;
}

.h2-container h2 {
  position: relative;
  z-index: 20;
  display: inline;
  padding-inline: 20px;
  font-size: 34px;
  color: var(--c-line);
  background: #fff;
}

.h2-container .h2-line {
  position: absolute;
  top: 30px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--c-line);
  z-index: 1;
}

.h2-container .h2-line-left,
.h2-container .h2-line-right {
  position: absolute;
  top: 20px;
  height: 20px;
  border-left: 1px solid var(--c-line);
}

.h2-container .h2-line-left {
  left: 0;
}

.h2-container .h2-line-right {
  right: 0;
  border-left: 0;
  border-right: 1px solid var(--c-line);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
}

.service {
  position: relative;
  padding-top: 80px;
}

.service .circle {
  position: absolute;
  left: 50%;
  top: 0;
  width: 80px;
  height: 80px;
  margin-left: -40px;
  border-radius: 50%;
  background: var(--c-primary);
  display: grid;
  place-items: center;
  transition: transform 0.7s ease-in-out;
}

.service:hover .circle {
  transform: rotate(360deg);
}

.service .circle img {
  width: 36px;
  height: 36px;
  filter: brightness(0) invert(1);
}

.service h3 {
  padding: 30px 0 5px;
  text-align: center;
}

.service p {
  margin: 0;
  padding: 0;
  text-align: center;
  color: var(--c-muted);
}

.bg-2 .circle {
  background: var(--c-panel);
}

.bg-2 a {
  color: var(--c-panel);
}

.bg-2 a:hover {
  color: var(--c-primary);
}

.bg-3 .circle {
  background: var(--c-muted-2);
}

.bg-3 a {
  color: var(--c-muted-2);
}

.bg-3 a:hover {
  color: var(--c-primary);
}

.recent-project-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
}

.btn,
.btn-small,
.btn-large,
.btn-large-icon {
  display: inline-grid;
  grid-auto-flow: column;
  gap: 8px;
  align-items: center;
  justify-content: center;
  height: 50px;
  padding: 0 40px;
  margin-right: 10px;
  margin-bottom: 10px;
  border: 1px solid var(--c-primary);
  border-radius: 0;
  font-family: "Open Sans", "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  line-height: 50px;
  color: var(--c-primary);
  background: #fff;
  text-transform: uppercase;
  cursor: pointer;
}

.btn:hover,
.btn-small:hover,
.btn-large:hover,
.btn-large-icon:hover {
  color: #fff;
  background: var(--c-primary);
}

.btn img,
.btn-small img,
.btn-large img,
.btn-large-icon img {
  width: 16px;
  height: 16px;
}

.btn-small {
  height: 45px;
  padding: 0 30px;
  font-size: 13px;
  line-height: 45px;
}

.say-about-us {
  display: grid;
  gap: 1rem;
}

.about-person {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 30px;
  align-items: center;
}

.say-about-us img {
  width: 100px;
  border: 6px solid var(--c-line);
  border-radius: 50%;
}

.client-img {
  justify-self: end;
}

.client-data {
  justify-self: start;
}

.say-about-us h5 {
  margin-bottom: 0;
  padding-top: 12px;
  font-size: 20px;
  color: var(--c-panel);
}

.say-about-us h6 {
  font-family: "Open Sans", "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  color: var(--c-primary);
}

.say-about-us p {
  margin: 0;
  padding: 20px 8%;
  text-align: center;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.project-container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem;
  padding-bottom: 20px;
  overflow: hidden;
}

.project-img,
.project-info {
  width: 100%;
}

.project-info h4 {
  margin-bottom: 10px;
}

.promo-box-container {
  position: relative;
  color: #fff;
  background: var(--c-primary);
  padding: 50px 0;
}

.promo-box-container::after {
  content: "";
  position: absolute;
  top: -10px;
  left: 50%;
  border-width: 0 10px 10px;
  border-style: solid;
  border-color: var(--c-primary) transparent;
  transform: translateX(-50%);
}

.promo-box {
  position: relative;
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 22px;
  align-items: center;
}

.promo-icon {
  width: 68px;
  height: 68px;
  filter: brightness(0) invert(1);
  opacity: 0.94;
}

.promo-box h4 {
  margin: 0;
  font-size: 30px;
  color: #fff;
  line-height: 1.4;
}

.footer {
  color: var(--c-muted);
  background: var(--c-dark);
}

.footer-content {
  padding-bottom: 20px;
}

.footer-top {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: center;
}

.logo-footer {
  align-self: center;
  width: auto;
  height: 36px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: start;
}

.footer h4 {
  color: #fff;
  font-family: "Open Sans", "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  font-weight: 400;
  padding-top: 12px;
  padding-bottom: 5px;
  margin-bottom: 8px;
}

.footer a,
.footer a:visited {
  color: var(--c-muted);
}

.footer a:hover {
  color: var(--c-primary);
}

.footer-column {
  position: relative;
}

.icon-inline {
  position: absolute;
  top: 5px;
  left: 0;
  width: 17px;
  height: 17px;
  filter: brightness(0) saturate(100%) invert(66%) sepia(10%) saturate(401%) hue-rotate(174deg) brightness(91%) contrast(88%);
}

.footer-column p {
  padding-left: 30px;
  margin-bottom: 20px;
}

.flickr-photos img {
  width: 31%;
  float: left;
  margin-right: 2.3%;
  margin-bottom: 2.3%;
}

.flickr-photos img:nth-of-type(3n) {
  margin-right: 0;
}

.social {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  justify-self: end;
}

.social a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 3px;
  background: var(--c-primary);
}

.social a:hover {
  background: var(--c-primary-hover);
}

.social img {
  width: 18px;
  height: 18px;
  filter: brightness(0) invert(1);
}

.copyright {
  color: var(--c-muted-2);
  background: var(--c-dark-2);
  padding: 30px 0;
}

.section-soft {
  background: #f7f9fc;
}

.typography-content {
  display: grid;
  gap: 1.15rem;
}

.type-specimen {
  border: 1px solid #e3e8ef;
  background: #fff;
  padding: 1rem 1.1rem;
}

.type-specimen h1,
.type-specimen h2,
.type-specimen h3,
.type-specimen h4,
.type-specimen h5,
.type-specimen h6 {
  margin-bottom: 0.45rem;
}

.type-specimen p {
  margin: 0;
}

.text-block-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.typo-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.typo-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.typo-card {
  border: 1px solid #e1e7f0;
  background: #fff;
  padding: 1rem 1.1rem;
}

.typo-card h2,
.typo-card h3,
.typo-card h4 {
  color: var(--c-dark);
}

.typo-card > :last-child {
  margin-bottom: 0;
}

.typo-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.35rem;
}

.typo-list li {
  display: grid;
  grid-template-columns: 18px 1fr;
  align-items: start;
  gap: 0.55rem;
}

.typo-list img {
  width: 16px;
  height: 16px;
  margin-top: 4px;
}

.typo-list a {
  display: grid;
  grid-template-columns: 18px 1fr;
  align-items: start;
  gap: 0.55rem;
  color: var(--c-muted-2);
}

.typo-list a:hover {
  color: var(--c-primary);
}

.typo-list-links li {
  display: block;
}

.typo-list-links a {
  grid-template-columns: 18px minmax(0, 1fr);
  line-height: 1.45;
}

.typo-quote {
  margin: 0;
  border-left: 5px solid #dbe4ef;
  padding: 0.2rem 0 0.2rem 1rem;
  color: var(--c-muted-2);
  font-size: 16px;
  font-style: italic;
  line-height: 1.55;
}

.tooltip-word {
  position: relative;
  cursor: help;
  color: var(--c-primary);
  border-bottom: 1px dashed rgba(84, 205, 231, 0.65);
}

.tooltip-word::after,
.tooltip-word::before {
  position: absolute;
  left: 50%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 140ms ease;
}

.tooltip-word::after {
  content: attr(data-tip);
  bottom: calc(100% + 10px);
  transform: translateX(-50%);
  min-width: 120px;
  max-width: 220px;
  padding: 0.35rem 0.55rem;
  border-radius: 3px;
  background: #2f3441;
  color: #fff;
  font-size: 12px;
  line-height: 1.35;
  text-align: center;
  white-space: normal;
}

.tooltip-word::before {
  content: "";
  bottom: calc(100% + 5px);
  transform: translateX(-50%);
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid #2f3441;
}

.tooltip-word:hover::after,
.tooltip-word:hover::before,
.tooltip-word:focus-visible::after,
.tooltip-word:focus-visible::before {
  opacity: 1;
}

.box-white,
.box-gray,
.box-theme-color {
  border: 1px solid #dfe6ef;
  padding: 1rem 1.05rem;
}

.box-white {
  background: #fff;
}

.box-gray {
  background: #f0f3f7;
}

.box-theme-color {
  color: #fff;
  background: #54cde7;
  border-color: #4bc4de;
}

.box-theme-color h4 {
  color: #fff;
}

.box-theme-color p {
  color: rgba(255, 255, 255, 0.95);
}

.icons-intro code,
.code-box code {
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 12px;
}

.icon-catalog {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.icon-set {
  border: 1px solid #dfe7f1;
  background: #fff;
  padding: 1rem;
}

.icon-set h4 {
  margin-bottom: 0.75rem;
}

.icon-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.icon-chip {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 0.5rem;
  align-items: center;
  padding: 0.42rem 0.5rem;
  background: #f8fbff;
  border: 1px solid #e2e9f4;
}

.icon-chip img {
  width: 18px;
  height: 18px;
}

.icon-chip code {
  color: #5c6f86;
}

.code-box {
  margin: 0;
  padding: 0.6rem 0.8rem;
  border: 1px solid #dae4ef;
  background: #f7fbff;
  overflow-x: auto;
}

@media (max-width: 991px) {
  .services-grid,
  .projects-grid,
  .footer-grid,
  .text-block-grid,
  .typo-grid-2,
  .typo-grid-3,
  .icon-catalog {
    grid-template-columns: 1fr;
  }

  .recent-project-grid,
  .project-container,
  .about-person {
    grid-template-columns: 1fr;
  }

  .client-img,
  .client-data {
    justify-self: center;
    text-align: center;
  }

  .footer-top {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .social {
    justify-self: start;
    justify-content: flex-start;
  }

  .flickr-photos img {
    width: 31%;
  }

  .icon-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .navbar .nav {
    grid-template-columns: repeat(3, max-content);
    grid-auto-flow: row;
    justify-content: center;
    gap: 0;
  }

  .navbar .nav > li > a {
    padding: 10px 14px;
    line-height: 30px;
  }

  body {
    padding-top: 180px;
  }

  .parallax h2 {
    font-size: 36px;
  }

  .parallax h3 {
    font-size: 16px;
  }

  .promo-box {
    grid-template-columns: 62px 1fr;
    gap: 14px;
  }

  .promo-icon {
    width: 62px;
    height: 62px;
  }

  .icon-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .parallax::before {
    transform: scale(1.08);
    will-change: auto;
  }
}
