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

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

/*
  Root
  ***
*/

:root {

  /* FONTS */
  --ff-montserrat: 'Montserrat', 'Montserrat Fallback', Helvetica, sans-serif;
  --ff-nunito: 'Nunito', 'Nunito Fallback', Helvetica, sans-serif;

}

/*
  Bodies
  ***
*/

html, body {
  background-color: #F3F0E9;
}
body {
  font: 300 14px var(--ff-nunito);
  letter-spacing: -0.025em;
  color: #474539;
}

/*
  Links
  ***
*/

a {
  text-decoration-thickness: 1px;
  color: var(--color-primary);
}
a:hover {
  text-decoration-thickness: 1px;
  color: var(--color-secondary);
}

/*
  Forms
  ***
*/

input, textarea, select, button {
  font: 300 18px var(--ff-nunito);
}

/*
  icon
  ***
*/

.icon {
  position: relative;
  display: inline-block;
  vertical-align: middle;
  background: center center no-repeat;
  font-size: 0;
  fill: #2F3031;
}

/*
  number
  ***
*/

.number {
  width: 40px;
  height: 28px;
  position: relative;
  top: -1px;
  display: inline-block;
  vertical-align: middle;
  margin-right: 6px;
  padding-top: 12px;
  background-color: var(--color-tertiary);
  border-radius: 50%;
  text-align: center;
  font-weight: 500;
  font-size: 15px;
}

/*
  button
  ***
*/

.button {
  display: inline-block;
  padding: 8px 16px 10px 16px;
  border: 2px solid var(--color-secondary);
  border-radius: 4px;
  text-decoration: none;
  font: 600 14px var(--ff-montserrat);
  line-height: 1.6;
  color: var(--color-secondary);
}

/*
  icon
  ...
*/

.button__icon {
  top: -1px;
  fill: var(--color-secondary);
}

/*
  Caps
  ...
*/

.button__icon:first-child {
  margin-right: 8px;
}
.button__icon:last-child {
  margin-left: 8px;
}

/*
  - color
  ---
*/

.button--color-white {
  border-color: #fff;
  color: #fff;
}

/*
  icon
  ...
*/

.button--color-white .button__icon {
  fill: #fff;
}

/*
  label
  ***
*/

.label {
  position: relative;
  display: inline-block;
  padding: 8px 9px 7px 9px;
  background-color: #DCE9FB;
  border-radius: 24px;
  font-weight: 500;
  font-size: 14px;
  color: #3E72BA;
}

/*
  - color
  ---
*/

.label--color-red {
  background-color: #FBDCE6;
  color: #EB5957;
}

/*
  - dot
  ---
*/

.label--dot {
  padding-left: 24px;
}
.label--dot:before {
  content: '';
  width: 7px;
  height: 7px;
  position: absolute;
  left: 11px;
  top: 50%;
  margin-top: -3px;
  background-color: #3E72BA;
  border-radius: 50%;
}

/*
  - color
  ...
*/

.label--color-red:before {
  background-color: #EB5957;
}

/*
  flash
  ---
*/

.flash {
  padding: 15px 22px;
  background-color: #FFF3D5;
  border-radius: 6px;
  font-weight: 500;
  font-size: 15px;
}

/*
  metadata
  ***
*/

.metadata {
  font-size: 0;
}

/*
  item
  ---
*/

.metadata__item {
  position: relative;
  margin-right: 12px;
  padding-right: 12px;
  font-size: 14px;
}
.metadata__item:after {
  content: '';
  width: 1px;
  height: 12px;
  position: absolute;
  right: 0;
  top: 4px;
  background-color: #dfdacf;
}

/*
  Caps
  ...
*/

.metadata__item:last-child {
  margin-right: 0;
  padding-right: 0;
}
.metadata__item:last-child:after {
  display: none;
}

/*
  - code
  ...
*/

.metadata__item.--code-mobile {
  display: none;
}

/*
  rating
  ***
*/

.rating {
  font-size: 0;
}

/*
  IMG
  ---
*/

.rating img {
  display: inline-block;
  margin-right: 6px;
}

/*
  Caps
  ...
*/

.rating img:last-child {
  margin-right: 0;
}

/*
  BR
  ---
*/

.rating br {
  display: none;
}

/*
  list-markerless
  ***
*/

.list-markerless {
  margin-left: 18px;
  list-style: none;
}

/*
  list-emojimarks
  ***
*/

.list-emojimarks {
  margin-left: 16px;
  list-style: none;
}
.list-emojimarks > li {
  position: relative;
  padding-left: 0;
}

/*
  Target emoji
  ---
*/

.list-emojimarks > li:first-letter {
  margin-right: 0.5em;
  text-align: center;
  text-indent: 0;
}

/*
  list-numerize
  ***
*/

.list-numerize {
  margin-left: 12px;
  list-style: none;
  counter-reset: numerize;
}

/*
  LI
  ---
*/

.list-numerize li {
  position: relative;
  padding-left: 42px;
  margin-bottom: 12px;
  counter-increment: numerize;
}

/*
  Caps
  ...
*/

.list-numerize li:last-child {
  margin-bottom: 4px;
}

/*
  Icon
  ...
*/

.list-numerize li:before {
  content: counter(numerize);
  width: 28px;
  height: 20px;
  position: absolute;
  left: 0;
  top: -1px;
  padding-top: 7px;
  background-color: var(--color-tertiary);
  border-radius: 50%;
  line-height: 1;
  text-align: center;
  font-weight: 600;
  font-size: 14px;
}

/*
  list-checkmarks
  ***
*/

.list-checkmarks {
  margin-left: 16px;
  list-style: none;
}

/*
  LI
  ---
*/

.list-checkmarks li {
  position: relative;
  padding-left: 28px;
}

/*
  Icon
  ...
*/

.list-checkmarks li:before {
  content: '';
  width: 16px;
  height: 20px;
  position: absolute;
  left: 0;
  top: 2px;
  background: url('../img/illustrations/icons/014.svg') center center no-repeat;
  background-size: contain;
}

/*
  nav-buttons
  ***
*/

.nav-buttons {
  line-height: 1;
  font-size: 0;
}

/*
  item
  ---
*/

.nav-buttons__item {
  display: inline-block;
  margin: 8px 4px 0 4px;
  padding: 8px 16px 8px 20px;
  background-color: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border-radius: 24px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.6;
  color: #474539;
}

/*
  list-timeline
  ***
*/

.list-timeline {
  overflow-y: hidden;
  overflow-x: auto;
  display: block;
  padding-bottom: 8px;
}

/*
  list
  ---
*/

.list-timeline__list {
  width: 100%;
  min-width: 550px;
  display: table;
  table-layout: fixed;
  margin: 0;
  border-collapse: collapse;
  text-align: center;
  font-size: 0;
}

/*
  item
  ---
*/

.list-timeline__item {
  position: relative;
  display: table-cell;
  vertical-align: top;
  margin: 0;
  padding: 0 12px;
  filter: grayscale(1) sepia(10%);
  text-align: center;
  font-size: 14px;
}
.list-timeline__item__inset {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* - past */

.list-timeline__item.--past {
  filter: none;
}

/* - now */

.list-timeline__item.--now {
  filter: none;
}

/*
  Line
  ...
*/

.list-timeline__item:before {
  content: '';
  height: 1px;
  position: absolute;
  left: 0;
  top: 44px;
  right: 0;
  background-color: rgba(0, 0, 0, 0.1);
}

/*
  Gaps
*/

.list-timeline__item:first-child:before {
  left: 50%;
}
.list-timeline__item:last-child:before {
  right: 50%;
}

/*
  icon
  ...
*/

.list-timeline__item__icon {
  width: 62px;
  height: 62px;
  position: relative;
  display: inline-block;
  margin-bottom: 8px;
  background-color: #dfdacf;
  border: 5px solid #F0EDE7;
  border-radius: 50%;
}

/* - past */

.list-timeline__item.--past .list-timeline__item__icon {
  background-color: #fff;
  border-color: #fff;
}

/* - now */

.list-timeline__item.--now .list-timeline__item__icon {
  background-color: #27AE60;
  border-color: #C0F1D5;
}

/*
  SPAN
*/

.list-timeline__item__icon span {
  position: absolute;
  left: 20%;
  top: 20%;
  right: 20%;
  bottom: 20%;
  background: center center no-repeat;
  background-size: contain;
}

/*
  time
  ...
*/

.list-timeline__item__time {
  margin: 0;
}

/*
  title
  ...
*/

.list-timeline__item__title {
  margin: 0;
}

/*
  iframe-guide
  ***
*/

.iframe-guide {
  width: 100%;
  margin: 0;
}

/*
  media
  ***
*/

.media {
  margin-bottom: 16px;
}

/*
  title
  ---
*/

.media__title {
  margin: 0;
}

/*
  excerpt
  ---
*/

.media__excerpt {
  margin: 4px 0 0 0;
}

/*
  content
  ---
*/

.media__content {
  margin: 24px 0 0 0;
}

/*
  medium
  ---
*/

.media__medium {
  width: 100%;
  display: block;
  margin: 0;
  border: none;
  border-radius: 6px;
  outline: none;
  text-decoration: none;
}
.media__medium + .media__medium {
  margin-top: 16px;
}

/*
  IMG
  ...
*/

.media__medium img {
  width: 100%;
  display: block;
  border-radius: 6px;
}

/*
  head
  ***
*/

.head {
  text-align: center;
}

/*
  Adjust metadata
  ---
*/

.head .metadata {
  margin: 18px 0 0 0;
}

/*
  Adjust nav-buttons
  ---
*/

.head .nav-buttons {
  margin: 8px 0 0 0;
}

/*
  Adjust list-timeline
  ---
*/

.head .list-timeline {
  max-width: 1060px;
  margin: 24px auto 0 auto;
}

/*
  title
  ---
*/

.head__title {
  margin: 0;
}

/*
  excerpt
  ---
*/

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

/*
  AFTER metadata
  ...
*/

.metadata + .head__excerpt {
  margin-top: 24px;
}

/*
  box
  ***
*/

.box {
  margin: 32px 0;
  padding: 34px 42px 16px 34px;
  background-color: #FFF3D5;
  border-radius: 6px;
}

/*
  Next
  ---
*/

.box + .box {
  margin-top: -16px;
}

/*
  Caps
  ---
*/

.box:first-child {
  margin-top: 0;
}
.box:last-child {
  margin-bottom: 16px;
}

/*
  - color
  ---
*/

.box--color-green {
  background-color: #DAFCE9;
}
.box--color-pink {
  background-color: #FEE8F2;
}
.box--color-ochre {
  background-color: #FAF8F4;
}

/*
  RULE
  ---
*/

.box hr {
  height: 1px;
  margin: 24px 0 !important;
}

/*
  item-quote
  ***
*/

.item-quote__inset {
  position: relative;
  margin: 32px 0;
  padding-left: 112px;
  font-size: 14px;
}

/*
  Caps
  ---
*/

.item-quote:first-child {
  margin-top: 0;
}
.item-quote:last-child {
  margin-bottom: 16px;
}

/*
  Icon
  ---
*/

.item-quote__inset:before {
  content: '';
  width: 24px;
  height: 24px;
  position: absolute;
  left: 56px;
  top: 2px;
  z-index: 1;
  background: url('../img/illustrations/icons/030.svg') center center no-repeat;
  background-size: contain;
}

/*
  - image
  ---
*/

.item-quote__image {
  position: absolute;
  left: 0;
  top: 0;
  border-radius: 50%;
}

/*
  text
  ---
*/

.item-quote__text {
  margin: 0;
}

/*
  Quotes
  ...
*/

.item-quote__text:before {
  content: "„";
  margin-right: -3px;
}
.item-quote__text:after {
  content: "“";
  margin-left: -3px;
}

/*
  source
  ---
*/

.item-quote__source {
  quotes: none;
  display: block;
  margin-top: 8px;
  line-height: 1.4;
  font-size: 90%;
  opacity: 0.75;
}

/*
  item-split
  ***
*/

.item-split {
  margin: 32px 0;
}
.item-split__inset {
  position: relative;
  padding: 32px 0;
  font-size: 14px;
}

/*
  Caps
  ---
*/

.item-split:first-child {
  margin-top: 0;
}
.item-split:last-child {
  margin-bottom: 16px;
}

/*
  content
  ---
*/

.item-split__content {
  margin-right: 50%;
  padding-right: 32px;
}

/*
  - align
  ...
*/

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

  .item-split--align-right .item-split__content {
    margin-right: 0;
    margin-left: 50%;
    padding-right: 0;
    padding-left: 32px;
  }

}

/*
  title
  ---
*/

.item-split__title {
  margin: 0;
}

/*
  format
  ---
*/

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

/*
  image
  ---
*/

.item-split__image {
  width: 50%;
  height: 100%;
  position: absolute;
  right: 0;
  top: 0;
  overflow: hidden;
  background: center center no-repeat;
  background-size: contain;
  border-radius: 6px;
}

/*
  - align
  ...
*/

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

  .item-split--align-right .item-split__image {
    right: auto;
    left: 0;
  }

}

/*
  IMG
  ...
*/

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

/*
  item-review
  ***
*/

.item-review {
  margin: 32px 0;
}
.item-review__inset {
  padding: 20px 24px;
  background-color: #FFF3D5;
  border-radius: 6px;
  font-weight: 500;
  font-size: 14px;
}

/*
  Next
  ---
*/

.item-review + .item-review {
  margin-top: -16px;
}

/*
  Caps
  ---
*/

.item-review:first-child {
  margin-top: 0;
}
.item-review:last-child {
  margin-bottom: 16px;
}

/*
  - color
  ---
*/

.item-review--color-green .item-review__inset {
  background-color: #DAFCE9;
}
.item-review--color-ochre .item-review__inset {
  background-color: #FAF8F4;
}
.item-review--color-pink .item-review__inset {
  background-color: #FEE8F2;
}

/*
  Adjust rating
  ---
*/

.item-review .rating {
  margin-bottom: 12px;
}

/*
  text
  ---
*/

.item-review__text {
  margin: 0;
}

/*
  Quotes
  ...
*/

.item-review__text:before, 
.item-review__text:after {
  font-weight: 700;
}
.item-review__text:before {
  content: "„";
}
.item-review__text:after {
  content: "“";
}

/*
  detail-page
  ***
*/

.detail-page {
  position: relative;
}

/*
  head
  ---
*/

.detail-page__head {
  margin-bottom: 16px;
}

/*
  section
  ---
*/

.detail-page__section {
  overflow: hidden;
  padding: 42px 42px 26px 42px;
  background-color: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border-radius: 6px;
}

/*
  + SAME
  ...
*/

.detail-page__section + .detail-page__section {
  margin-top: 24px;
}

/*
  Adjust flash
  ...
*/

.detail-page__section .flash:first-child {
  margin: -42px -42px 42px -42px;
  padding-left: 42px;
  padding-right: 42px;
  border-radius: 6px 6px 0 0;
}

/*
  Adjust RULE
  ...
*/

.detail-page__section hr {
  margin-left: -1000px;
  margin-right: -1000px;
}

/*
  Adjust push
  ...
*/

.detail-page__section .push {
  max-width: 800px;
  margin: 0 auto;
}

/*
  AFTER iframe-guide
*/

.detail-page__section .iframe-guide + .push {
  margin-top: 26px;
}

/*
  head
  ...
*/

.detail-page__section__head {
  display: block;
  margin-bottom: 24px;
  text-align: left;
  font-size: 0;
}

/*
  Adjust title
*/

.detail-page__section__head .head__title {
  display: inline-block;
}

/*
  Adjust metadata
*/

.detail-page__section__head .metadata {
  position: relative;
  top: -5px;
  display: inline-block;
  margin: 0 0 0 24px;
  padding: 12px 16px;
  background-color: #F3F0E9;
  border-radius: 4px;
}

/* Adtjust label */


.detail-page__section__head .metadata .label {
  background-color: transparent;
}

/*
  site-main
  ***
*/

.site-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 38px 24px 64px 24px;
}

/*
  site-head
  ***
*/

.site-head {
  padding: 0 24px;
  background-color: var(--color-primary);
}
.site-head__inset {
  max-width: 1200px;
  height: 100px;
  position: relative;
  margin: 0 auto;
}

/*
  Adjust button
  ---
*/

.site-head .button {
  position: absolute;
  left: 0;
  top: 50%;
  margin-top: -24px;
  color: #fff;
}

/*
  logo
  ---
*/

.site-head__logo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -53%);
  text-decoration: none;
  font-size: 0;
}
.site-head__logo img {
  max-width: 160px;
  max-height: 60px;
  display: block;
}