/**
 * Styles
 *
 * @author Lex Lexter <hi@leximo.cz>
 * @version 1.0.0
 * @website https://leximo.cz/
 */

@font-face {
  font-family: 'Work Sans Fallback';
  size-adjust: 100%;
  src: local('Arial');
}

/*
  Bodies
  ***
*/

body {
  letter-spacing: -0.03em;
  font: 300 16px 'Work Sans', 'Work Sans Fallback', Arial, Helvetica, sans-serif;
  color: #1C1C1C;
}

/*
  Links
  ***
*/

a {
  text-decoration-thickness: 1px;
  color: #8C0C40;
}
a:hover {
  color: #1C1C1C;
}

/*
  button
  ***
*/

.button {
  transform: rotate(0.05deg);
  display: inline-block;
  padding: 13px 24px;
  border: 1px solid #F5F5F5;
  border-radius: 24px;
  line-height: 1;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  color: #1C1C1C;
  transition: 150ms linear;
}

/* hover */

.button:hover {
  background-color: #F5F5F5;
  color: #8C0C40;
}

/*
  Hide BRs
  ---
*/

.button br {
  display: none;
}

/*
  - color
  ---
*/

.button--color-primary {
  padding-top: 14px;
  padding: 14px 25px;
  background-color: #8C0C40;
  border: none;
  color: #fff;
}

/* hover */

.button--color-primary:hover {
  background-color: #b82f66;
  color: #fff;
}

/*
  list-icons
  ***
*/

.list-icons li {
  position: relative;
  margin-bottom: 6px;
  padding-left: 8px;
}

/*
  Decoration
  ---
*/

.list-icons li:before {
  content: '';
  width: 16px;
  height: 16px;
  position: absolute;
  left: -18px;
  top: 5px;
  background: #fff center center no-repeat;
}

/*
  - type
  ...
*/

.list-icons--type-true li:before {
  background-image: url('../img/icons/red/check.svg');
}

/*
  file
  ***
*/

.file {
  overflow: hidden;
  display: block;
  margin: 12px 0;
  padding: 17px 20px 18px 50px;
  background: #fff url('../img/icons/red/download.svg') 16px center no-repeat;
  border: 1px solid #DBDBDB;
  text-decoration: none;
  color: #1B1B1B;
  transition: box-shadow 150ms linear;
}

/* hover */

.file:hover {
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.06);
}

/*
  Hide BRs
  ---
*/

.file br {
  display: none;
}

/*
  BOLD
  ---
*/

.file b {
  float: left;
}

/* hover */

.file:hover b {
  text-decoration: underline;
  color: #8C0C40;
}

/*
  SPAN
  ---
*/

.file span {
  float: right;
  text-transform: uppercase;
}

/*
  gallery
  ***
*/

.gallery {
  margin: 32px -16px 16px -16px;
  font-size: 0;
}

/*
  Hide
  ---
*/

.gallery p, 
.gallery br {
  display: none;
}

/*
  structure
  ---
*/

.gallery > dl, 
.gallery > dt {
  width: 25%;
  box-sizing: border-box;
  display: inline-block;
  vertical-align: top;
  margin-bottom: 16px;
  padding: 0 16px;
  text-align: center;
}

/*
  images
  ---
*/

.gallery a, 
.gallery a img {
  display: block;
}
.gallery a {
  position: relative;
  overflow: hidden;
}
.gallery a img {
  width: 100%;
  object-fit: cover;
  filter: grayscale(1);
  transition: filter 150ms linear, transform 150ms ease-in-out;
}

/* hover */

.--touch-false .gallery a:hover img {
  transform: scale(1.05);
  filter: grayscale(0);
}

/*
  item-project
  ***
*/

.item-project__inset {
  position: relative;
  font-size: 15px;
}

/*
  content
  ---
*/

.item-project__content {
  width: 270px;
  float: left;
  padding: 172px 0;
}

/*
  align
  ...
*/

@media only screen and (min-width: 781px) {

  .item-project--align-right .item-project__content {
    float: right;
  }

}

/*
  image
  ---
*/

.item-project__image {
  position: absolute;
  left: 350px;
  top: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  background: #333 center center no-repeat;
  background-size: cover;
}

/*
  align
  ...
*/

@media only screen and (min-width: 781px) {

  .item-project--align-right .item-project__image {
    left: 0;
    right: 350px;
  }

}

/*
  IMG
  ...
*/

.item-project__image img {
  display: block;
  opacity: 0;
}

/*
  num
  ---
*/

.item-project__num {
  margin: 0 0 16px 0;
  font-size: 14px;
}

/*
  title
  ---
*/

.item-project__title {
  margin: 0;
}

/*
  LINK
  ...
*/

.item-project__title a {
  text-transform: uppercase;
  text-decoration: none;
  color: inherit;
}

/* hover */

.item-project__title a:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  color: #8C0C40;
}

/*
  excerpt
  ---
*/

.item-project__excerpt {
  margin: 16px 0 0 0;
}

/*
  link
  ---
*/

.item-project__link {
  display: block;
  margin: 24px 0 0 0;
}

/*
  item---list
  ***
*/

.item---list {
  position: relative;
}
.item---list__inset {
  margin: 0 -16px -32px -16px;
  font-size: 0;
}

/*
  - gaps
  ...
*/

.item---list--gaps-large .item---list__inset {
  margin: 0 -42px -84px -42px;
}

/*
  item
  ---
*/

.item---list__item {
  width: 100%;
  display: inline-block;
  vertical-align: top;
  margin-bottom: 32px;
}
.item---list__item__inset {
  margin: 0 16px;
}

/*
  - gaps
  ...
*/

.item---list--gaps-large .item---list__item {
  margin-bottom: 84px;
}
.item---list__item__inset {
  margin: 0 42px;
}

/*
  - cols
  ...
*/

.item---list--cols-1 .item---list__item {
  width: 100%;
}
.item---list--cols-2 .item---list__item {
  width: 50%;
}
.item---list--cols-3 .item---list__item {
  width: 33.33%;
}
.item---list--cols-4 .item---list__item {
  width: 25%;
}
.item---list--cols-5 .item---list__item {
  width: 20%;
}

/*
  head-page
  ***
*/

.head-page {
  width: 100%;
  display: table;
}

/*
  title
  ---
*/

.head-page__title {
  width: auto;
  display: table-cell;
  padding-right: 32px;
  line-height: 1.45;
  font-weight: 300;
  font-size: 24px;
}

/*
  excerpt
  ---
*/

.head-page__excerpt {
  display: table-cell;
  margin: 0;
  line-height: 1.8;
  font-size: 18px;
}

/*
  detail-post
  ***
*/

.detail-post {
  display: block;
}

/*
  head
  ---
*/

.detail-post__head {
  padding-bottom: 64px;
  border-bottom: 1px solid #eee;
  text-align: center;
}

/*
  title
  ---
*/

.detail-post__title {
  margin: 0;
  text-transform: uppercase;
  font-weight: 600;
}

/*
  excerpt
  ---
*/

.detail-post__excerpt {
  max-width: 640px;
  margin: 10px auto 0 auto;
}

/*
  type
  ---
*/

.detail-post__type {
  margin: 0 0 10px 0;
  text-transform: uppercase;
  font-weight: 600;
  font-size: 14px;
  color: #A3A3A3;
}

/*
  image
  ---
*/

.detail-post__image {
  position: relative;
  display: block;
  margin: -1px -64px 0 -64px;
}

/*
  IMG
  ...
*/

.detail-post__image img {
  width: 100%;
  display: block;
}

/*
  content
  ---
*/

.detail-post__content {
  margin-top: 74px;
}

/*
  Adjust button
  ...
*/

.detail-post__content .button {
  margin: 0 8px 12px 8px;
}

/*
  site-wrap
  ***
*/

.site-wrap {
  overflow: hidden;
  padding: 64px 6% 0 6%;
}
.site-wrap__inset {
  max-width: 1052px;
  margin: 0 auto;
}

/*
  site-head
  ***
*/

.site-head {
  display: block;
}

/*
  logo
  ---
*/

.site-head__logo {
  float: left;
}

/*
  IMG
  ...
*/

.site-head__logo img {
  display: block;
}

/*
  socials
  ---
*/

.site-head__socials {
  float: right;
  margin: 26px 0 0 16px;
  font-size: 0;
}

/*
  LINK
  ---
*/

.site-head__socials a {
  transform: rotate(0.05deg);
  display: inline-block;
  margin-left: 16px;
  font-weight: 700;
  font-size: 16px;
}

/*
  socials
  ---
*/

.site-head__nav {
  float: right;
  margin-top: 9px;
  font-size: 0;
}

/*
  LINK
  ---
*/

.site-head__nav a {
  transform: rotate(0.05deg);
  display: inline-block;
  margin-left: 12px;
  padding: 11px 18px;
  border: 1px solid #F5F5F5;
  border-radius: 24px;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  color: #1C1C1C;
  transition: 150ms linear;
}

/* hover */

.site-head__nav a:hover {
  background-color: #F5F5F5;
  color: #8C0C40;
}

/* - active */

.site-head__nav a.--active {
  font-weight: 700;
  color: #8C0C40;
}

/*
  site-main
  ***
*/

.site-main {
  margin-top: 112px;
}

/*
  Adjust head-page
  ---
*/

.site-main .head-page {
  margin-bottom: 82px;
}

/*
  site-message
  ***
*/

.site-message {
  display: block;
}

/*
  Adjust button
  ---
*/

.site-message .button {
  margin: 22px 12px 0 0;
}

/*
  title
  ---
*/

.site-message__title {
  margin: 0;
}

/*
  excerpt
  ---
*/

.site-message__excerpt {
  margin: 16px 0 0 0;
}

/*
  site-foot
  ***
*/

.site-foot {
  position: relative;
  margin-top: 94px;
  padding: 84px 0;
  font-size: 0;
}

/*
  Decoration
  ---
*/

.site-foot:before {
  content: '';
  height: 1px;
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  background-color: #F1F1F1;
}

/*
  logo
  ---
*/

.site-foot__logo {
  display: inline-block;
  vertical-align: top;
  margin-right: 82px;
}

/*
  contact
  ---
*/

.site-foot__contact {
  display: inline-block;
  vertical-align: top;
  margin-right: 64px;
  padding-top: 10px;
  font-size: 16px;
}

/*
  - Gaps
  ...
*/

.site-foot__contact:last-child {
  margin-right: 0;
}

/*
  title
  ...
*/

.site-foot__contact__title {
  margin: 24px 0 0 0;
  font-size: 15px;
  font-weight: 500;
  color: #585858;
}

/*
  Gaps
*/

.site-foot__contact__title:first-child {
  margin-top: 0;
}

/*
  address
  ...
*/

.site-foot__contact__address {
  margin: 12px 0 0 0;
}

/*
  BOLD
*/

.site-foot__contact__address b {
  display: block;
  line-height: inherit;
  font-size: 20px;
}

/*
  BOLD
*/

.site-foot__contact__address span {
  display: block;
  line-height: inherit;
}

/*
  link
  ...
*/

.site-foot__contact__link {
  display: block;
  margin: 12px 0 0 0;
  font-size: 20px;
  font-weight: 400;
}