.master-template {
    --indent: 150px;

    font-size: 20px;
    line-height: 1.5;
    font-family: var(--font-family);

    padding-top: calc(var(--indent) * 0.5);
}

.master-template .mt-h2 {
    font-family: var(--font-family-accent);
    font-size: 54px;
    font-weight: 400;
    line-height: 1.25;
    text-transform: uppercase;
    margin: 0 0 0.75em;
}

.master-template .mt-h3 {
    text-align: center;
    font-size: 36px;
    font-weight: 800;
    line-height: 1.5;
    text-transform: uppercase;
    margin: 0 0 1em;
}

.master-template .mt-h3:last-child {
    margin-bottom: 0;
}

.mt-section + .mt-section {
    margin-top: var(--indent);
}

.mt-creative__title {
    font-family: var(--font-family-accent);
    font-size: 80px;
    font-weight: 400;
    line-height: 1.08;
    text-transform: uppercase;
    margin: 0 0 0.625em;
}

.mt-creative .text {
    max-width: 770px;
    margin: 0 0 calc(var(--indent) * 0.5);
}

.mt-comics__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 60px;
}

.mt-comics__grid img {
    display: block;
}

.mt-comics__cell:nth-child(1) p {
    margin-right: -20px;
}

.mt-comics__cell:nth-child(1) img {
    margin: 34px auto 0;
    max-width: 88%;
}

.mt-comics__cell:nth-child(2) img {
    max-width: 100%;
}

.mt-comics__cell:nth-child(2) .mt-comics__content {
    max-width: 390px;
    margin: 0 auto;
}

.mt-comics__cell--border {
    border: 4px solid #303030;
    padding: 0 3% 10px;
}

.mt-comics__cell:nth-child(3) img {
    max-width: 100%;
    margin: 0 auto;
    transform: translateY(-10%);
}

.mt-comics__cell:nth-child(4) img {
    max-width: 100%;
    margin: 0 auto;
    transform: translateY(-6%);
}

.mt-comics__cell:nth-child(4) p {
    text-align: center;
}

.mt-comics__cell--wide {
    grid-column: 1 / -1;
}

.mt-comics__cell--wide img {
    margin: -6% auto 0;
    max-width: 80%;
    position: relative;
}

.mt-comics__speech {
    border: 4px solid #303030;
    padding: 60px 30px;
    text-align: center;
    position: relative;
}

.mt-comics__speech:before {
  content: "";
  width: 31px;
  height: 38px;
  background: url(/local/templates/emx2023/img/master-template/speech-tail.png) no-repeat 0 0 / 100% 100% transparent;
  position: absolute;
  top: 100%;
  left: 43%;
  margin-left: -15px;
}

.mt-comics__speech p {
    max-width: 595px;
    margin: 0 auto;
}

.mt-timing__list {
    display: flex;
    flex-flow: row wrap;
    align-items: flex-start;
    justify-content: center;
}

.mt-timing__list li {
    flex: 0 0 300px;
    margin: 0 30px 40px;
    text-align: center;
}

.mt-timing__list b {
    display: block;
    text-transform: uppercase;
    font-weight: 800;
}

.mt-timing__list img {
    display: block;
    margin: 0 auto 40px;
    height: 260px;
    object-fit: contain;
    object-position: center bottom;
}

.mt-table .mt-h2 {
    max-width: 16em;
}

.mt-table__list {
    display: grid;
    grid-template-columns: 47% 1fr;
    border: 4px solid #303030;
    border-top: 0 none;
}

.mt-table__list dt {
    padding: 40px 10% 50px 12.5%;
    font-weight: 800;
    text-transform: uppercase;
    border-top: 4px solid #303030;
}

.mt-table__list dd {
    padding: 40px 10% 50px 5.5%;
    border-top: 4px solid #303030;
}

.mt__page-text {
    max-width: 650px;
    margin: 0 0 40px;
}

.mt-cases .main-cases__block {
    color: rgba(153, 153, 153, .6);
}

.mt-cases .main-cases__item .main-cases__title,
.mt-cases .main-cases__item .main-cases__text {
    transition: color 0.2s;
}

.mt-cases .main-cases__item:hover .main-cases__title,
.mt-cases .main-cases__item:hover .main-cases__text {
    color: #222222;
}

.mt-cases .mt-cases__all {
    margin-top: clamp(30px, 5.5vh, 60px);
}

.mt-cases .main-cases_right.perekrestok1-case {
    overflow: hidden;
}

.mt-cases .perekrestok1-star3 {
    top: 77%;
}

.mt-cases .hasttings-tmplt-case {
    overflow: hidden;
}

.hasttings-tmplt-case__wrapper {
    position: absolute;
    width: 100%;
    height: 100%;
    transform-origin: top left;
    transform: scale(0.8);
}

.mt-cases .hasttings-tmplt-case__girl-1 {
    top: 260px;
}

.mt-cases .hasttings-tmplt-case__girl-2 {
    top: 260px;
    right: 35px;
}

.mt-cases .hasttings-tmplt-case__ball-wrapper {
    top: calc(260px - 9%);
    right: 35%;
}

.mt-cases .case-modern__right.noimg2-case2 {
    opacity: 1;
    transition: none;
    right: auto;
}

.mt-history__scroll {
    padding-left: 70px;
    position: relative;
    border-left: 3px solid #303030;
}

.mt-history__scroll-line {
    position: absolute;
    top: 0;
    left: -3px;
    bottom: 35px;
}

.mt-history__tiger {
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    background: var(--pink-color);
    height: 0%;
}

.mt-history__tiger:before {
    content: "";
    width: 92px;
    height: 92px;
    background: url(/local/templates/emx2023/img/master-template/scroll-tiger.png) no-repeat 0 0 transparent;
    position: absolute;
    bottom: -62px;
    left: -44px;
}

.mt-history__list > li {
    max-width: 970px;
}

.mt-history__list > li + li {
    margin-top: 2.5em;
}

.mt-history__list > li > p {
    margin: 0;
}

.mt-history__list > li > p > b {
    text-transform: uppercase;
    font-weight: 800;
}

.mt-history__list ul li:before {
    content: "— ";
}

.mt-guideline .mt-h2 {
    max-width: 1020px;
    padding-right: 190px;
    position: relative;
    margin-bottom: 1.5em;
}

.mt-guideline .mt-h2:before {
    content: "";
    width: 260px;
    height: 165px;
    background: url(/local/templates/emx2023/img/master-template/title-hamster.png) no-repeat 0 0 transparent;
    position: absolute;
    top: -5px;
    right: 5px;
}

.mt-guideline .mt__image {
    margin-top: 50px;
}

.mt-cols {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 75px;
}

.mt-cols p:not(:last-child) {
    margin-bottom: 1em;
}

.mt-cols h3 {
    font-size: inherit;
    font-weight: 800;
    text-transform: uppercase;
}

.mt-reviews {
    border-top: 3px solid #303030;
    border-bottom: 3px solid #303030;
    padding: var(--indent) 0 calc(var(--indent) * 0.8);
}

.mt-reviews .container {
    position: relative;
}

.mt-reviews .mt-h2 {
    margin: -0.2em 0 0;
    text-align: right;
}

.mt-reviews__text ul {
    list-style: disc outside;
    margin-bottom: 1em;
    margin-left: 1.5em;
}

.mt-reviews .slider-controls {
    width: 305px;
    position: absolute;
    bottom: 0;
    left: calc(50% - 305px - 38px);
}

.mt-reviews .reviews__author {
    height: auto;
    margin: 60px 0 90px;
}

.mt-reviews .reviews__read a {
    color: var(--pink-color);
    font-weight: 800;
}

.mt-price .mt-h2 {
    margin-bottom: 0.5em;
}

.mt-price__grid {
    max-width: 566px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 32px;
    margin: 40px auto 0;
}

.mt-price__cell {
    -webkit-perspective: 900px;
          perspective: 900px;
}

.gamecard {
    --timing: 1500ms;
    position: relative;
    -webkit-transition: -webkit-transform var(--timing);
    transition: -webkit-transform var(--timing);
    -o-transition: transform var(--timing);
    transition: transform var(--timing);
    transition: transform var(--timing), -webkit-transform var(--timing);
    -webkit-transform-style: preserve-3d; 
    transform-style: preserve-3d;
}

.gamecard.active {
    -webkit-transform: rotateY(180deg);
    transform: rotateY(180deg);
}

@media (hover: hover) {

    .gamecard:hover {
        -webkit-transform: rotateY(180deg);
        transform: rotateY(180deg);
    }

}

.gamecard::before {
    content: "";
    display: block;
    padding-top: 147%;
}

.gamecard__front,
.gamecard__back {
    position: absolute;
    z-index: 9;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    border-radius: 24px;
}

.gamecard__front {
    background-color: #303030;
    padding: 18px;
}

.gamecard__front-inner {
    border: 3px solid #fff;
    border-radius: 18px;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(to right, #413F3F 50%, #303030 50%);
    background-size: 50px 100%;
    background-repeat: repeat;
    display: flex;
}

.gamecard__front-image {
    display: block;
    width: 50%;
    flex: 0 1 50%;
    margin: auto;
}

.gamecard__back {
    background-color: var(--pink-color);
    -webkit-transform: rotateY(180deg) translateZ(1px);
            transform: rotateY(180deg) translateZ(1px);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;

    padding: 18px;
    display: flex;
}

.gamecard__back-wrapper {
    flex: 1 1 100%;
    margin: auto;
    color: #fff;
    text-align: center;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.22;
}

.gamecard__back-wrapper img {
    display: block;
    margin: 20px auto;
}

.gamecard__block--price {
    font-size: 1.11em;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
}

.gamecard__block--price b {
    display: block;
    font-size: 1.8em;
}

.gamecards__name {
    text-align: center;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.5;
    text-transform: uppercase;
    margin: 1em 0 0;
}

.mt-pix .mt-h2 {
    text-align: center;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    padding-right: 76px;
    position: relative;
}
 
.mt-pix .mt-h2:before {
    content: "";
    position: absolute;
    width: 63px;
    height: 107px;
    background: url(/local/templates/emx2023/img/master-template/palm-title.png) no-repeat 0 0 transparent;
    top: calc(50% - 53px);
    right: 0;
}

.mt-pix__bg {
    background: #303030;
    color: #fff;
    text-align: center;
    padding: calc(var(--indent) * 0.4) 0 calc(var(--indent) * 0.66);
    font-size: 0.9em;
}

.mt-pix__bg img {
    display: block;
    margin: 30px auto;
}

.mt-pix__bg .container {
    max-width: 940px;
}

.mt-pix__bg ul {
    list-style: disc inside;
}

.mt-pix__bg li + li {
    margin-top: 1em;
}

.mt__image {
    margin: 20px 0;
}

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

.mt__image figcaption {
    margin: 20px 0 0;
    font-style: italic;
}

@media (max-width: 1320px) {

    .mt-history__scroll {
        margin-left: 20px;
    }

}

@media (max-width: 1079px) {

    .master-template {
        --indent: 80px;
        font-size: 16px;
    }

    .mt-creative__title {
        font-size: 68px;
    }

    .mt-comics__speech {
        padding-top: 35px;
        padding-bottom: 35px;
    }

    .master-template .mt-h3 {
        font-size: 22px;
    }

    .mt-timing__list {
        display: block;
        margin-bottom: 40px;
    }

    .mt-timing__list li {
        margin: 0 auto;
        max-width: 300px;
    }

    .mt-timing__list li + li {
        margin-top: 10px;
    }

    .mt-timing__list img {
        height: auto;
        margin-bottom: 15px;
    }

    .mt-table__list dt,
    .mt-table__list dd {
        padding: 25px 15px;
    }

    .master-template .mt-h2 {
        font-size: min(32px, 6.4vw);
    }

    .mt-history__scroll {
        margin-left: 30px;
        margin-top: 40px;
        padding-left: 45px;
    }

    .mt-guideline .mt-h2 {
        padding-right: 0;
        margin-bottom: 0.75em;
    }

    .mt-guideline .mt-h2:before {
        display: none;
    }

    .mt-cols {
        grid-template-columns: 1fr;
        grid-gap: 2.5em;
    }

    .mt-reviews .container {
        padding-bottom: 60px;
    }

    .mt-reviews .mt-h2 {
        margin: 0;
        text-align: left;
    }

    .mt-reviews .reviews__author {
        margin: 15px 0 25px;
    }

    .mt-reviews .slider-controls {
        width: 100%;
        left: 0;
    }

    .mt-pix .mt-h2 {
        padding-right: 0;
    }

    .mt-pix .mt-h2:before {
        display: none;
    }
}

@media (max-width: 767px) {

    .mt-creative__title {
        font-size: min(7.4vw, 52px);
    }

    .mt-comics__grid {
        grid-template-columns: 1fr;
        grid-gap: calc(var(--indent) * 0.35);
    }

    .mt-comics__cell:nth-child(1) p {
        margin-right: 0;
    }

    .mt-comics__cell:nth-child(2) .mt-comics__content {
        max-width: none;
        display: flex;
        flex-flow: row nowrap;
        align-items: center;
        justify-content: flex-start;
        font-size: 0.8em;
        max-width: 550px;
        margin-left: 0;
    }

    .mt-comics__cell:nth-child(2) img {
        --img-width: min(160px, 30%);

        flex: 0 0 var(--img-width);
        width: var(--img-width);
        max-width: var(--img-width);
        margin-right: 25px;
    }

    .mt-comics__cell:nth-child(3) img,
    .mt-comics__cell:nth-child(4) img {
        max-width: 280px;
    }

    .mt-price__grid {
        grid-template-columns: 1fr;
        max-width: 200px;
    }

    .gamecards__name {
        font-size: 16px;
    }

    .gamecard__front,
    .gamecard__back {
        padding: 10px;
    }

    .gamecard__back-wrapper {
        font-size: 14px;
    }

    .mt-table__list {
        grid-template-columns: 1fr;
    }

    .mt-table__list dt {
        padding-bottom: 10px;
    }

    .mt-table__list dd {
        padding-top: 0;
        border-top: 0 none;
    }
}