@font-face {
    font-family: 'MontserratBlackItalic';
    src: url('../fonts/Montserrat-BlackItalic.woff2') format('woff2'),
        url('../fonts/Montserrat-BlackItalic.woff') format('woff');
    font-weight: 900;
    font-style: italic;
    font-display: swap;
}

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

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

.amp-page {
    --indent: 140px;

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

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

.amp-page .ap-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;
}

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

.amp-page .ap-h3:last-child {
    margin-bottom: 0;
}

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

.ap-creative__title {
    font-family: var(--font-family-accent);
    font-size: 80px;
    font-weight: 400;
    line-height: 1.08;
    text-transform: uppercase;
    margin: 0 auto 0.8em;
    padding: 0 0 1.08em;
    width: fit-content;
    position: relative;
    text-align: center;
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
}

.ap-creative__title span {
    display: block;
}

@keyframes runWord1 { to { left: calc(100% - 5.6em); } }
@keyframes runWord2 { to { left: calc(100% - 4.7em); } }
@keyframes runWord3 { to { left: calc(100% - 3.9em); } }
@keyframes runWord4 { to { left: calc(100% - 4em); } }

.ap-creative__title .short {
    position: absolute;
    left: 0;
    bottom: 0;
    animation: none 2s ease-in-out 0s infinite alternate;

    font-size: 1.575em;
    line-height: 0.87;
    -webkit-text-stroke: 0.0625em #F1F1F1;
    paint-order: stroke fill;
    opacity: 0;
}

.ap-creative__title .short.active {
    opacity: 1;
}

.ap-creative__title .short1 {
    font-size: 1em;
    line-height: 1.08;
    animation-name: runWord1;
}

.ap-creative__title .short2 {
    font-family: 'MontserratBlackItalic';
    font-weight: 900;
    font-style: italic;
    letter-spacing: -0.04em;
    animation-name: runWord2;
}

.ap-creative__title .short3 {
    font-family: 'Lobster';
    letter-spacing: -0.04em;
    animation-name: runWord3;
}

.ap-creative__title .short4 {
    font-family: 'Jakob';
    margin-bottom: -0.25em;
    animation-name: runWord4;
}

.ap-creative .text {
    max-width: 1050px;
    margin: 0 auto calc(var(--indent) * 0.4);
    text-align: center;
}

.ap-reasons .ap-h2 {
    margin-bottom: 1.66em;
}

.ap-reasons__wrapper {
    max-width: 790px;
    margin: 0 auto;
}

.ap-reasons__list {
    max-width: 500px;
    
    font-weight: 800;
    line-height: 1.5;
    text-transform: uppercase;
}

.ap-reasons__list li:before {
    content: "💖 ";
}

.ap-reasons__list li + li {
    margin-top: 70px;
}

.ap-reasons__sep {
    height: 3px;
    margin: 70px 0;
    position: relative;
}

.ap-reasons__sep:after {
    content: "";
    display: block;
    height: 100%;
    background: #303030;
}

.ap-reasons__iceberg {
    position: absolute;
    width: 496px;
    height: 760px;
    background: url(/local/templates/emx2023/img/amp-page/reasons-iceberg.png) no-repeat 0 0 transparent;
    right: 0;
    top: -210px;
}

@keyframes seaFloat {
    to { transform: translateX(5%); }
}

.ap-reasons__monster {
    position: absolute;
    width: 349px;
    height: 454px;
    background: url(/local/templates/emx2023/img/amp-page/reasons-monster.png) no-repeat 0 0 transparent;
    right: -50px;
    top: 60px;
    transform: translateX(0);
    animation: seaFloat 5s ease-in-out 0s infinite alternate;
}

.ap-reasons__tiger {
    position: absolute;
    width: 211px;
    height: 193px;
    background: url(/local/templates/emx2023/img/amp-page/reasons-tiger.png) no-repeat 0 0 transparent;
    right: 230px;
    top: -57px;
    animation: seaFloat 4.3s ease-in-out -0.5s infinite alternate;
}

.ap-table__table {
    width: 100%;
    border: 4px solid #303030;
    table-layout: fixed;
}

.ap-table__table th,
.ap-table__table td {
    padding: 40px 60px;
    text-align: left;
    vertical-align: top;
}

.ap-table__table td {
    border-top: 4px solid #303030;
}

.ap-table__table th,
.ap-table__table td:first-child {
    font-weight: 800;
    text-transform: uppercase;
}

.ap-table__table td:nth-child(3) {
    width: 380px;
}

.ap-examples .ap-h2 {
    max-width: 18em;
    margin-left: auto;
    margin-right: auto;
}

.ap-examples__list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 110px clamp(20px, 4vw, 51px);

    padding: 100px 0 0;
}

.ap-example {
    display: block;
    color: inherit;
    font-size: min(20px, 1.42vw);
    font-weight: 800;
    line-height: 1.3;
    text-transform: uppercase;
    transition: color 0.15s ease;
}

.ap-example__title {
    height: 2.6em;
    margin: 0 0 1em;
    font-weight: 800;
    padding-left: 3.3em;
    position: relative;
    white-space: nowrap;
}

.ap-example__title::before {
    content: "";
    width: 2.8em;
    height: 2.8em;
    background: url(/local/templates/emx2023/img/amp-page/letter-logo.svg) no-repeat center center / 1.4em 1.25em #303030;
    border-radius: 50%;
    position: absolute;
    left: 0;
    top: calc(50% - 1.4em);
    transition: background-color 0.15s ease;
}

.ap-example__title::after {
    content: " →";
}

.ap-example__image {
    margin: 0;
    position: relative;
}

.ap-example__image::before {
    content: "";
    width: 100%;
    padding-top: 43%;
    position: absolute;
    bottom: -24px;
    left: 0;
    border-radius: 100%;
    background: radial-gradient(50% 50% at 50% 50%, #FF2963 33.33%, rgba(255, 41, 99, 0.00) 100%);
    filter: blur(28px);
}

.ap-example__image::after {
    content: "";
    width: 80%;
    padding-top: 48%;
    position: absolute;
    bottom: -18px;
    left: 10%;
    border-radius: 100%;
    background: radial-gradient(50% 50% at 50% 50%, #FF2963 33.33%, rgba(255, 41, 99, 0.00) 100%);
    filter: blur(28px);
}

.ap-example__image::before,
.ap-example__image::after {
    opacity: 0;
    transition: opacity 0.15s ease;
}

.ap-example__image img {
    display: block;
    max-width: 100%;
    position: relative;
    z-index: 1;
}

@media (hover: hover) {

    .ap-example:hover {
        color: var(--pink-color);
    }

    .ap-example:hover .ap-example__title::before {
        background-color: var(--pink-color);
    }

    .ap-example:hover .ap-example__image::before,
    .ap-example:hover .ap-example__image::after {
        opacity: 1;
    }

}

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

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

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

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

.ap-history__list > li {
    max-width: 960px;
}

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

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

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

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

.ap__image {
    margin: 20px 0;
}

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

.ap__image figcaption {
    margin: 20px 0 0;
    font-weight: 500;
    font-style: italic;
}

@media (max-width: 1320px) {

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

}

.ap-cases .main-cases_left {
    padding-bottom: 80px;
}

.ap-cases .main-cases_page {
    margin-bottom: clamp(30px, 5.5vh, 60px);
}

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

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

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

.ap-price__container {
    width: 267px;
    margin: 0 auto;
    -webkit-perspective: 900px;
          perspective: 900px;
}

.ap-price .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;
}

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

@media (hover: hover) {

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

}

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

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

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

.ap-price .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;
}

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

.ap-price .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;
}

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

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

.ap-price .gamecard__back-image {
    position: relative;
    margin: 0 auto 28px;
    width: 179px;
    height: 180px;
    background: url(/local/templates/emx2023/img/amp-page/stars-pink.gif) no-repeat center / cover;
    -webkit-clip-path: url(#clipPath);
    clip-path: url(#clipPath);
}

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

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

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

.ap-faq a {
    color: var(--pink-color);
}

@media (max-width: 1079px) {

    .amp-page {
        --indent: 80px;
        font-size: 16px;
    }

    .ap-creative__title {
        font-size: min(80px, 7vw);
    }

    .amp-page .ap-h2 {
        font-size: min(32px, 6.4vw);
    }

    .ap-reasons .ap-h2 {
        margin-bottom: 0.75em;
    }

    .ap-reasons__list {
        max-width: none;
    }

    .ap-reasons__list br {
        display: none;
    }

    .ap-reasons__list li + li,
    .ap-reasons__sep + .ap-reasons__list {
        margin-top: 20px;
    }

    .ap-reasons__sep {
        display: none;
    }

    .ap-reasons__wrapper {
        max-width: none;
    }

    .ap-table__table th,
    .ap-table__table td {
        padding: 20px 15px 20px 0;
        width: calc(50% - 100px);
    }

    .ap-table__table th:first-child,
    .ap-table__table td:first-child {
        width: 200px;
        padding-left: 15px;
    }

    .ap-table__table th br {
        display: none;
    }

    .ap-examples__list {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        grid-gap: 40px 20px;
        padding: 10px 0 50px;
    }

    .ap-example {
        font-size: 14px;
    }

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

    .ap-cases .main-cases_left {
        padding-bottom: 0;
    }

    .ap-cases .main-cases_right {
        display: none !important;
    }

    .ap-cases .main-cases_page {
        display: block !important;
    }

    

}

@media (max-width: 767px) {

    .ap-table__table,
    .ap-table__table * {
        display: block;
    }

    .ap-table__table {
        border: 0 none;
        font-size: 14px;
    }

    .ap-table__table tr {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-gap: 5px 10px;
    }

    .ap-table__table tbody tr {
        border-top: 2px solid #303030;
        padding-top: 10px;
    }

    .ap-table__table tbody,
    .ap-table__table tbody tr + tr {
        margin-top: 15px;
    }

    .ap-table__table th,
    .ap-table__table td {
        width: auto !important;
    }

    .ap-table__table th {
        padding: 0;
        text-align: center;
    }

    .ap-table__table th:first-child {
        display: none;
    }

    .ap-table__table td {
        border: 0 none;
        text-align: center;
        padding: 0;
    }

    .ap-table__table td:first-child {
        grid-column: 1 / -1;
        padding-left: 0;
    }

    .ap-price__container {
        max-width: 200px;
    }

    .ap-price .gamecards__name {
        font-size: 16px;
    }

    .ap-price .gamecard__front,
    .ap-price .gamecard__back {
        padding: 10px;
    }

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

    .ap-price .gamecard__back-image {
        transform-origin: bottom center;
        transform: scale(0.65);
    }

}

/* ----- */

.ap-cases .main-cases_right {
    transform: translate(0px, 0px)
}

.ap-cases .main-cases_right.fond1-case {
    left: 570px;
    width: 115em;
    height: 77em;
    bottom: 0;
    top: auto;
    overflow: hidden;
    font-size: clamp(6px, 1vh, 10px);
    transform: none;
}

.ap-cases .main-cases_right.amp-bethoven-case {
    width: 750px;
}

.ap-cases .main-cases_right .amp-bethoven-case__wrapper {
    width: 516px;
}

.ap-cases .main-cases_right.our-emails-case {
    display: flex;
    flex-flow: row nowrap;
    align-items: center;
    justify-content: flex-start;
}

.ap-cases .main-cases_right .sour-emails-case__wrapper {
    width: 427px;
    flex: 0 1 auto;
}

.ap-cases .main-cases_right.emx2-case {
    width: 800px;
}

.ap-cases .main-cases_right.emx5-case {
    margin-top: -375px;
}