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

body,
h1, h2, h3, h4, h5, h6,
p,
ul, ol {
  margin: 0;
}

ul, ol {
  padding: 0;
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
}

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

button,
input,
textarea {
  font: inherit;
  border: none;
  background: none;
  outline: none;
}

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

* {
  -webkit-tap-highlight-color: transparent;
}

@font-face {
  font-family: "Roobert TRIAL";
  src: url("../fonts/RoobertTRIAL-Regular.woff2") format("woff2"), url("../fonts/RoobertTRIAL-Regular.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
.container {
  width: 100%;
  padding: 16px;
  margin-right: auto;
  margin-left: auto;
  max-width: 768px;
  min-height: 100dvh;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
}

.tpl-grid {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
}

body {
  min-height: 100vh;
  line-height: 1.1;
  font-family: "Roobert TRIAL", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  color: #222;
}

.tpl-item {
  border-radius: 24px;
  position: relative;
  overflow: hidden;
  z-index: 1;
  display: block;
  margin-bottom: 6px;
  font-size: 34px;
  line-height: 36px;
  height: 168px;
  background-color: #F7F6F3;
  letter-spacing: -0.04em;
}
.tpl-item img, .tpl-item video {
  position: absolute;
  width: 100%;
  height: 100%;
  bottom: 0;
  left: 0;
  z-index: -1;
  -o-object-fit: cover;
     object-fit: cover;
  -o-object-position: bottom;
     object-position: bottom;
}
.tpl-item strong {
  font-weight: normal;
  font-size: 18px;
  line-height: 21px;
  letter-spacing: -0.03em;
  text-transform: lowercase;
  display: block;
}

.tpl-item-bg {
  background: #E1FD35;
  color: #1E1E1E;
}
.tpl-item-bg strong {
  color: #222;
  opacity: 0.5;
}

.tpl-item-dark {
  background: #1E1E1E;
  color: #fff;
}

.tpl-hero {
  height: 516px;
  color: #F7F6F3;
  overflow: hidden;
}
.tpl-hero .tpl-item-caption span {
  color: #fff;
}
.tpl-hero .tpl-item-footer {
  display: block;
}

.tpl-item-caption span {
  display: block;
  font-size: 13px;
  line-height: 15px;
  letter-spacing: -0.01em;
}

.tpl-item-inf {
  position: absolute;
  left: 16px;
  right: 16px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  font-size: 13px;
  line-height: 15px;
  letter-spacing: 0.01em;
}
.tpl-item-inf strong {
  font-size: 18px;
  line-height: 21px;
}

.tpl-item-inf-top {
  top: 8px;
}

.tpl-item-inf-btm {
  bottom: 16px;
}

.tpl-item-header {
  position: absolute;
  left: 16px;
  right: 16px;
  top: 8px;
}
.tpl-item-header strong {
  color: #222;
  opacity: 0.5;
}

.tpl-item-footer {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
}

.tpl-item-site {
  height: auto;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}
.tpl-item-site div {
  padding: 18px 16px 27px;
  position: relative;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
}

.tpl-group {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 6px;
  margin-bottom: 6px;
}
.tpl-group .tpl-item {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  margin: 0;
}
.tpl-group .tpl-item-decor {
  -webkit-box-flex: 0;
      -ms-flex: 0 0 140px;
          flex: 0 0 140px;
  max-width: 140px;
}
.tpl-group strong {
  color: #F7F6F3;
}

footer {
  font-size: 13px;
  line-height: 15px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: end;
      -ms-flex-align: end;
          align-items: flex-end;
  height: 70px;
}

@media (min-width: 768px) {
  .tpl-grid {
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: 1fr 16px 1fr;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .tpl-item-site {
    height: 168px;
  }
}
.slider {
  position: relative;
  width: 100%;
  height: 168px;
  overflow: hidden;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.slide img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}

.slide {
  -webkit-animation-duration: 20s;
          animation-duration: 20s;
  -webkit-animation-iteration-count: infinite;
          animation-iteration-count: infinite;
  -webkit-animation-timing-function: linear;
          animation-timing-function: linear;
}

.slide:nth-child(1) {
  -webkit-animation-name: fade1;
          animation-name: fade1;
}

.slide:nth-child(2) {
  -webkit-animation-name: fade2;
          animation-name: fade2;
}

.slide:nth-child(3) {
  -webkit-animation-name: fade3;
          animation-name: fade3;
}

@-webkit-keyframes fade1 {
  0% {
    opacity: 0;
  }
  5% {
    opacity: 1;
  }
  30% {
    opacity: 1;
  }
  40% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

@keyframes fade1 {
  0% {
    opacity: 0;
  }
  5% {
    opacity: 1;
  }
  30% {
    opacity: 1;
  }
  40% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}
@-webkit-keyframes fade2 {
  0% {
    opacity: 0;
  }
  25% {
    opacity: 0;
  }
  35% {
    opacity: 1;
  }
  60% {
    opacity: 1;
  }
  70% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}
@keyframes fade2 {
  0% {
    opacity: 0;
  }
  25% {
    opacity: 0;
  }
  35% {
    opacity: 1;
  }
  60% {
    opacity: 1;
  }
  70% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}
@-webkit-keyframes fade3 {
  0% {
    opacity: 0;
  }
  55% {
    opacity: 0;
  }
  65% {
    opacity: 1;
  }
  95% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
@keyframes fade3 {
  0% {
    opacity: 0;
  }
  55% {
    opacity: 0;
  }
  65% {
    opacity: 1;
  }
  95% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}