@font-face {
  font-family: 'Montserrat';
  src: url("fonts/Montserrat-Regular.woff2") format("woff2"), url("fonts/Montserrat-Regular.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Montserrat';
  src: url("fonts/Montserrat-Bold.woff2") format("woff2"), url("fonts/Montserrat-Bold.woff") format("woff");
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

html {
  font-size: 18px;
}

@media only screen and (min-width: 768px) {
  html {
    font-size: 22px;
  }
}

@media only screen and (min-width: 992px) {
  html {
    font-size: 26px;
  }
}

@media only screen and (min-width: 1200px) {
  html {
    font-size: 30px;
  }
}

body {
  -webkit-transition: color 1s, background-color 1s;
  transition: color 1s, background-color 1s;
}

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

p {
  margin: 0 0 1rem 0;
  padding: 0;
}

a {
  position: relative;
  display: inline-block;
  text-decoration: none;
  color: var(--color-text);
}

a::before, a::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 5px;
  background-color: var(--color-line);
}

a::after {
  background-color: var(--color-text);
  width: 0;
  -webkit-transition: all .3s;
  transition: all .3s;
}

a:hover::after, a:focus::after, a:active::after {
  width: 100%;
}

.text-center {
  text-align: center;
}

.more {
  position: relative;
  display: inline-block;
  padding: 5px 0;
  color: var(--color-text);
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: 3px;
}

a.dashed {
  text-decoration: none;
  border-bottom: 1px dashed;
  color: inherit;
}

a.dashed::before, a.dashed::after {
  display: none;
}

/*
body {
  --color-bg: #000;
  --color-text: #fff;
  --color-line: #555;
  .tool {
    background-color: var(--color-bg);
  }
}

*/
body.is-theme-light {
  --color-bg: #eee;
  --color-bg-rgb: 238, 238, 238;
  --color-text: #000;
  --color-text-rgb: 0, 0, 0;
  --color-line: #999;
}

body.is-theme-light .tool {
  background-color: var(--color-text);
}

.section {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
}

@media only screen and (min-width: 992px) {
  .section {
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
        -ms-flex-direction: row;
            flex-direction: row;
  }
}

.section-title {
  display: block;
  margin: 0 0 2rem 0;
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
}

.section-title-text {
  position: -webkit-sticky;
  position: sticky;
  top: var(--header-height);
  display: inline-block;
  margin: 0 2rem 0 0;
  padding: 0 .5rem;
  border-left: 20px solid var(--color-line);
  text-transform: uppercase;
}

.section-body {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
}

@media only screen and (min-width: 992px) {
  .section-body {
    -webkit-box-flex: 3;
        -ms-flex: 3;
            flex: 3;
  }
}

.section--tools .tools {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
}

.section--tools .tool {
  width: 50%;
  height: 200px;
  padding: 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
}

@media only screen and (min-width: 576px) {
  .section--tools .tool {
    width: 25%;
  }
}

.section--tools .tool img {
  -webkit-filter: grayscale(1);
  filter: grayscale(1);
  opacity: .75;
  -webkit-transform: scale(0.8);
          transform: scale(0.8);
  -webkit-transition: all .3s;
  transition: all .3s;
}

.section--tools .tool p {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-line);
}

.section--tools .tool:hover img, .section--tools .tool:focus img, .section--tools .tool:active img {
  opacity: 1;
  -webkit-filter: grayscale(0);
  filter: grayscale(0);
  -webkit-transform: scale(1);
          transform: scale(1);
}

.services {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
}

.services > .service {
  display: inline-block;
  margin: 0 1rem 1rem 0;
  padding: 0.25rem 0.5rem;
  -webkit-box-shadow: 0 0 0 1px var(--color-line);
          box-shadow: 0 0 0 1px var(--color-line);
  font-weight: 400;
  font-size: .8rem;
  color: var(--color-text);
  background-color: var(--color-bg);
  cursor: pointer;
  -webkit-transition: all .5s;
  transition: all .5s;
}

.services > .service:hover, .services > .service:focus, .services > .service:active {
  color: var(--color-bg);
  background-color: var(--color-text);
  -webkit-transition: all .5s;
  transition: all .5s;
}

.section--projects .projects-filters {
  position: -webkit-sticky;
  position: sticky;
  top: calc( var(--header-height) + 2rem);
  padding-top: 1rem;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
      -ms-flex-direction: row;
          flex-direction: row;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  -webkit-box-align: start;
      -ms-flex-align: start;
          align-items: flex-start;
}

@media only screen and (min-width: 992px) {
  .section--projects .projects-filters {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
  }
}

.section--projects .projects-filter {
  position: relative;
  margin: .5em 1em .5em 0;
  padding: 0;
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}

.section--projects .projects-filter::before {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  width: 0;
  height: 5px;
  background-color: var(--color-text);
  -webkit-transition: all .3s;
  transition: all .3s;
}

.section--projects .projects-filter.active::before {
  width: 100%;
}

.section--projects .projects {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
}

.section--projects .project {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  width: 100%;
  padding: 0 0 3rem 0;
  -webkit-box-align: start;
      -ms-flex-align: start;
          align-items: flex-start;
}

@media only screen and (min-width: 576px) {
  .section--projects .project {
    width: 45%;
  }
}

.section--projects .project a {
  -webkit-transition: all .3s;
  transition: all .3s;
  -webkit-transform-origin: top left;
          transform-origin: top left;
}

.section--projects .project:hover a {
  -webkit-transform: scale(1.5);
          transform: scale(1.5);
}

.section--projects .project img {
  aspect-ratio: 16/9;
}

.section--projects .project-title {
  margin: .25rem 0;
}

.section--projects .project-desc {
  margin: .25rem 0;
  font-size: .7rem;
  color: var(--color-line);
}

.section--projects .project-link {
  font-size: .8rem;
}

.section--contacts {
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
}

@media only screen and (min-width: 992px) {
  .section--contacts {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
  }
}

.section--contacts .or,
.section--contacts .phone-text {
  margin: 2rem 0;
  color: var(--color-line);
}

.section--contacts .phone-text {
  font-size: .8rem;
}

.form-input,
.form-text {
  margin: 0 0 2rem 0;
  font-size: 1rem;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
}

@media only screen and (min-width: 768px) {
  .form-input,
  .form-text {
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
        -ms-flex-direction: row;
            flex-direction: row;
    -ms-flex-wrap: nowrap;
        flex-wrap: nowrap;
  }
}

.form-input label,
.form-text label {
  margin: 0 1rem 0 0;
}

.form-input input,
.form-input textarea,
.form-text input,
.form-text textarea {
  position: relative;
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  color: var(--color-text);
  background: none;
  border: none;
  outline: none;
  font-size: 1rem;
  border-bottom: 1px solid var(--color-line);
  -webkit-transition: all .3s;
  transition: all .3s;
}

.form-input input:hover, .form-input input:focus, .form-input input:active,
.form-input textarea:hover,
.form-input textarea:focus,
.form-input textarea:active,
.form-text input:hover,
.form-text input:focus,
.form-text input:active,
.form-text textarea:hover,
.form-text textarea:focus,
.form-text textarea:active {
  border-bottom: 1px solid var(--color-text);
}

.form-input input.service-selected,
.form-input textarea.service-selected,
.form-text input.service-selected,
.form-text textarea.service-selected {
  color: orangered;
}

.form-submit {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
}

.form-submit button {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  width: 160px;
  height: 160px;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  font-size: 1rem;
  text-transform: uppercase;
  border: none;
  border-radius: 50%;
  color: var(--color-bg);
  background-color: var(--color-text);
  cursor: pointer;
  -webkit-transform: scale(1);
          transform: scale(1);
  -webkit-transition: all .3s;
  transition: all .3s;
}

.form-submit button:hover, .form-submit button:focus, .form-submit button:active {
  -webkit-transform: scale(1.2);
          transform: scale(1.2);
}

.section--bonus .bonuses > a {
  margin: 0 2rem 2rem 0;
}

body.is-scroll header {
  -webkit-transform: translateY(0);
          transform: translateY(0);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

header {
  background: rgba(var(--color-text-rgb), 0.8);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-transition: all .3s;
  transition: all .3s;
  opacity: 1;
}

header a::before, header a::after {
  display: none;
}

.header__logo {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  padding: 10px;
}

.header__title {
  font-size: 36px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 4px;
}

.header__subtitle {
  font-size: 10px;
  line-height: 1;
}

.header__menu {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
      -ms-flex-direction: row;
          flex-direction: row;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  padding: 10px;
}

.header__changecolor {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  width: 2rem;
  height: 2rem;
  margin: 0 0 0 1rem;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  cursor: pointer;
}
