/*** UI ***/
* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

html, body {
    background-color: var(--background);
    color: var(--font);
}

a {
    text-decoration: none;
}

h1 {
    margin-bottom: 24px;
}

.overflow-none {
    overflow: hidden;
}

.button-in-text {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.simply-text {
    background: none;
    border: none;
    color: var(--font);
    cursor: pointer;
    font-family: var(--font-family);
}

.container {
    max-width: 1280px;
    padding: 0 24px;
    margin: 0 auto;
}

.content {
    padding-bottom: 24px;
}

.content p {
    margin-bottom: 24px;
}

.content p:last-child {
    margin-bottom: 0;
}

.content h1,
.content h2,
.content h3,
.content h4,
.content h5,
.content h6 {
    margin-bottom: 24px;
    font-weight: 700;
}

.content ul,
.content ol {
    margin: 0 0 24px 24px;
}

.content ul li,
.content ol li {
    margin-bottom: 6px;
}

.content img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
    overflow: hidden;
}

.content table {
    border-collapse: collapse;
    margin-bottom: 24px;
    width: 100%;
}

.content table th,
.content table td {
    border-width: 1px;
    border-style: solid;
    padding: 8px 16px;
}

.content blockquote {
    font-style: italic;
    border-left-style: solid;
    border-left-width: 6px;
    margin-bottom: 24px;
    padding: 16px 24px;
}

.content blockquote p:last-child {
    margin-bottom: 0;
}

.content-wrap {
    display: grid;
    grid-template-columns: calc(100% - 324px) 300px;
    gap: 24px;
}

.content-main h2:before {
    display: block;
    content: "";
    height: 55px;
    margin: -55px 0 0;
}

.content-aside-block {
    position: sticky;
    top: 100px;
    padding: 16px 24px;
    border: 1px solid;
    font-weight: 500;
}

.content-aside-block a {
    border-bottom: 1px dashed;
}

.content-aside-block div {
    margin-bottom: 12px;
}

.content-aside-block div:last-child {
    margin-bottom: 0;
}

/*** FAQ ***/
.faq {
    margin-top: 24px;
}

.faq-items {
    position: relative;
}

.faq-item {
    margin-bottom: 16px;
}

.faq-question {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
    gap: 20px;
    user-select: none;
    transition: .3s;
}

.faq-question-icon {
    width: 24px;
    height: 24px;
    transition: .3s;
    transform: rotate(180deg);
}

.faq-item.active .faq-question-icon {
    transform: rotate(0deg);
}

.faq-answer {
    display: none;
    padding: 16px;
}

.faq-answer > div > p:last-child {
    margin-bottom: 0;
}

.faq-answer.active {
    display: block;
}

/*** 404 ***/
.page__notfound {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    text-align: center;
    min-height: 100vh;
}

.page__notfound-text {
    margin-bottom: 12px;
}

.page__notfound-desc {
    margin-bottom: 48px;
}

/** MonoSlot */
.mono-slot__wrap {
    padding: 10px;
    background-color: var(--border);
    max-width: 800px;
    margin: 0 auto 20px;
}

.mono-slot__image {
    background-color: #000;
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    margin-bottom: 10px;
}

.mono-slot__image img {
    aspect-ratio: 16/10;
    object-fit: cover;
    width: 100%;
    height: auto;
    opacity: .6;
}

.mono-slot__image-btn {
    z-index: 1;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
}

.mono-slot__image-btn div {
    transition: .3s;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    background-color: var(--button-primary);
    border-radius: 50%;
    height: 48px;
    width: 48px;
}

.mono-slot__image-btn:hover div {
    background-color: var(--button-secondary);
}

.mono-slot__image-btn svg {
    height: 20px;
    width: 20px;
}

.mono-slot__content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
    gap: 20px;
}

.mono-slot__title {
    font-size: 26px;
    font-weight: 700;
}

.mono-slot__provider {
    margin-bottom: 10px;
}

.mono-slot__rating {
    padding: 10px;
}

.mono-slot__content-row .button {
    font-size: 18px;
}

.mono-slot__rating span {
    display: block;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
}

.mono-slot__rating .stars {
    font-size: 24px;
}

.mono-slot__limit {
    text-align: center;
    opacity: .6;
}

@media screen and (max-width: 768px) {
    .mono-slot__content-row:last-child {
        width: 100%;
    }

    .mono-slot__content-row .button {
        width: 100%;
    }
}

/*** Modal ***/
.modal-iframe {
    background: rgba(0, 0, 0, .7);
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 3;
    align-items: center;
    justify-content: center;
    display: none;
}

.modal-iframe.active {
    display: flex;
}

.modal-iframe-container {
    width: 100%;
    height: 100%;
}

.modal-iframe-content {
    position: relative;
    height: 100%;
}

.modal-iframe-content iframe {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
}

.modal-iframe-close {
    text-align: right;
    font-weight: 700;
    cursor: pointer;
    padding: 4px 0;
}

.monetization-modal {
    background: rgba(0, 0, 0, .7);
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 3;
    align-items: center;
    justify-content: center;
    display: flex;
}

.monetization-modal__container {
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
    background: var(--header);
    padding: 30px;
}

.monetization-modal__header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.monetization-modal__header-logo-from {
    max-width: 100px;
    height: 60px;
}

.monetization-modal__header-logo-from img {
    object-fit: contain;
    width: 100%;
    height: 100%;
}

.monetization-modal__header-logo-to {
    max-width: 200px;
    height: 80px;
}

.monetization-modal__header-logo-to img {
    object-fit: contain;
    width: 100%;
    height: 100%;
}

.monetization-modal__header-separator {
    font-size: 30px;
}

.monetization-modal__title {
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    margin: 20px 0;
}

.monetization-modal__desc {
    text-align: center;
    margin: 20px 0;
}

.monetization-modal__bonus {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgb(181,34,195);
    background: linear-gradient(90deg, rgba(181,34,195,1) 25%, rgba(45,97,253,1) 100%);
    font-weight: 700;
    font-size: 16px;
    margin: 20px 0;
}

.monetization-modal__bonus div:first-child {
    color: var(--white);
}

.monetization-modal__bonus div:last-child {
    color: var(--yellow);
}

.monetization-modal__button {
    display: flex;
    align-items: center;
    justify-content: center;
}

/*** Author ***/
.author {
    border: 2px solid var(--border);
    padding: 20px;
}

.author-profile {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    align-items: center;
}

.author-profile img {
    flex: 0 0 60px;
    width: 60px;
    height: 60px;
    object-fit: cover;
    margin: 0;
}

.author-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
    color: var(--font-family);
    margin-bottom: 10px;
}

.author-post {
    font-size: 16px;
    color: var(--border);
    line-height: 1;
}

.author-bio {
    color: var(--font-family);
    margin-bottom: 20px;
}

.top-profile {
    font-size: 90%;
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    align-items: center;
}

.top-profile img {
    flex: 0 0 50px;
    width: 50px;
    height: 50px;
    object-fit: cover;
    margin: 0;
}

/*** Stars ***/
.stars {
    position: relative;
    display: inline-block;
    font-size: 32px;
    line-height: 1;
}

.stars:before {
    content: "★★★★★";
}

.stars-filled {
    position: absolute;
    white-space: nowrap;
    overflow: hidden;
    color: #ffc106;
    left: 0;
    top: 0;
}

.stars-filled:before {
    content: "★★★★★";
}

/*** Single CTA ***/
.review-cta {
    position: relative;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.review-cta__row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.review-cta__row:last-child {
    justify-content: center;
    gap: 20px;
}

.review-cta__row:nth-child(2) {
    justify-content: center;
    gap: 20px;
}

.review-cta__col {
    display: flex;
    align-items: center;
    flex: 0 0 calc(50% - 10px);
    width: calc(50% - 10px);
    gap: 20px;
}

.review-cta__advantages {
    border-width: 1px;
    border-style: solid;
    padding: 20px;
    flex: 1 1 calc(50% - 10px);
    width: calc(50% - 10px);
    gap: 20px;
}

.review-cta__advantages > div {
    display: flex;
    margin-bottom: 10px;
    gap: 10px;
}

.review-cta__advantages:first-child > div:before {
    content: '✔️';
}

.review-cta__advantages:last-child > div:before {
    content: '❌';
}

.review-cta__col:last-child {
    justify-content: right;
}

.review-cta__title {
    font-size: 24px;
    font-weight: 700;
}

.review-cta__logo {
    position: relative;
    width: 120px;
    height: 120px;
    overflow: hidden;
    flex: 0 0 120px;
}

.review-cta__rating span {
    font-weight: 700;
}

.review-cta__bonus {
    display: block;
    padding: 12px;
    text-align: center;
    font-weight: 700;
    transition: .3s;
}

.review-cta__bonus:hover {
    transform: scale(1.1);
}

/*** TOC ***/
.toc {
    margin: 0 auto 20px;
    max-width: 800px;
    overflow: hidden;
}

.toc-name {
    text-align: center;
    padding: 15px 20px;
    background-color: var(--header);
    color: var(--header-font);
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.toc-name span {
    display: block;
}

.toc-icon {
    transition: .3s;
}

.toc-name.active .toc-icon {
    transform: rotate(180deg);
}

.toc-list {
    padding: 10px 20px;
    background-color: var(--header);
}

.toc-list.hidden {
    display: none;
}

.toc-list a {
    color: var(--header-font);
}

.toc-sub-list {
    padding-left: 30px;
}

.toc-item {
    padding: 10px 20px;
}

/*** Media ***/
@media screen and (max-width: 992px) {
    .content-wrap {
        grid-template-columns: 100%;
    }

    .content-aside-block {
        display: none;
    }

    .review-cta__row {
        flex-direction: column;
    }

    .review-cta__row .button {
        text-align: center;
    }

    .review-cta__col {
        flex: 0 0 100%;
        width: 100%;
    }

    .review-cta__bonus,
    .review-cta__advantages {
        width: 100%;
    }
}

@media screen and (max-width: 768px) {
    .button-in-text form,
    .button-in-text button {
        width: 100%;
    }
}

@media screen and (max-width: 576px) {
    .content-iframe {
        aspect-ratio: 1/1;
    }
}
