html {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

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

:root {
    --dark: #333333;
    --light: #f9f9f9;
    --transition: 0.3s ease-out;
    --line-height15: 150%;
}

body {
    font-family: 'Manrope', sans-serif;
    scroll-behavior: smooth;
    display: flex;
    font-size: 16px;
}

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

.text a {
    text-decoration: underline;
}

img {
    max-width: 100%;
}

.list-reset {
    margin: 0;
    padding: 0;
    list-style: none;
}

.btn-reset {
    padding: 0;
    border: none;
    background-color: transparent;
    cursor: pointer;
}

.visually-hidden {
    position: absolute;
    white-space: nowrap;
    width: 1px;
    height: 1px;
    overflow: hidden;
    border: 0;
    padding: 0;
    clip: rect(0 0 0 0);
    -webkit-clip-path: inset(50%);
    clip-path: inset(50%);
    margin: -1px;
}

.stop-scroll {
    overflow: hidden;
}

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

.main {

    padding-bottom: 30px;
    padding-right: 80px;
}

.section {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(12, 1fr);
    padding: 49px 0 30px;
}

.container {
    padding: 0 80px 0 95px;
}

.tag {
    position: sticky;
    top: 20px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-content: flex-start;
}

.hero__tag-list {}

.tag__item {}

.tag__item--back {

    position: absolute;
    bottom: -80%;
}

.tag__item-link {
    display: flex;
    padding: 8px 25px;
    border: 1px solid var(--dark);
    border-radius: 30px;
    font-size: 12px;
    line-height: var(--line-height15);
    color: var(--dark);
    transition: color var(--transition), background-color var(--transition);
}

.tag__item-link:hover {
    color: var(--light);
    background-color: var(--dark);
}



.tag__item-link::before {
    content: '#';
}

.tag__item-link--partner::before {
    content: '';
}

.tag__item-link--partner {
    color: var(--light);
    background-color: var(--dark);
}

.tag__item-link--partner:hover {
    color: var(--dark);
    background-color: var(--light);
}

.subtitle {
    font-size: 2em;
    font-weight: 600;
    line-height: var(--line-height15);
    color: var(--dark);
    margin-bottom: 10px;

}

.title {
    margin-bottom: 40px;
    font-size: 5em;
    font-weight: 600;
    line-height: 1.2;
    text-wrap: balance;

    color: var(--dark);
}

.title:has(+ .subtitle) {
    margin-bottom: 32px;
}

.text {
    font-size: 1.2em;
    font-weight: 400;
    line-height: var(--line-height15);
}

.aside {
    width: 80px;
    background-color: var(--dark);
    flex-shrink: 0;
    padding: 23px;
}

.aside img {
    position: sticky;
    top: 30px;
}

.split {
    background-color: var(--light);
}

.header {
    position: relative;
    font-size: 0;

}

.header__section {
    /* position: absolute; */
    width: 100%;
    padding: 0;
    /* padding-right: 80px; */
    grid-template-rows: max-content;
}

.partner {
    display: flex;
    flex-direction: column;
    align-items: center;
    grid-column: 2/4;
}

.partner__text {
    display: flex;
    align-items: center;
    justify-content: center;
    width: max-content;
    font-size: 1.2em;
    line-height: 1.5;
    color: var(--light);
    background-color: var(--dark);
    padding: 22px;
    border: 1px solid var(--dark);
    border-top: none;
    border-radius: 0 0 40px 40px;
}

.partner__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 160px;
    background-color: var(--dark);
    padding: 22px;
    border: 1px solid var(--dark);
    border-top: none;
    border-radius: 0 0 40px 40px;
}

.partner__logo--light {
    background-color: var(--light);
}

.hero {
    padding-top: 0;
}

.hero__tag-container {
    padding-top: 34px;
    grid-column: 2 / span 3;
    grid-row: span 2;

}

.card .hero__tag-container {
    grid-row: 1 /2;
}

.hero__title-wrap {
    grid-column: 6 /12;
}

.hero__title {
    padding-top: 40px;
}

.hero__article {
    grid-column: 6 / span 6;
}

.text:not(:last-child) {
    margin-bottom: 24px;
}

.article-list__list {
    grid-column: 2/-1;
    display: grid;
    grid-template-columns: repeat(5, 265px);
    justify-content: space-between;
    row-gap: 54px;
    column-gap: 20px;
}

.article__descr {
    position: relative;
}

.article__title {
    justify-content: flex-start;
    display: flex;
    align-items: baseline;
    max-width: 80%;
    gap: 12px;
    margin-bottom: 8px;
    color: var(--dark);
    font-size: 24px;
    line-height: var(--line-height15);
    font-weight: 600;

}

.article__title::after {
    content: '';
    position: absolute;
    top: 12px;
    right: 0;
    transform: translateX(-30px);
    flex-shrink: 0;
    background-image: url('../images/dist/arrow-new.svg');
    background-repeat: no-repeat;
    width: 15px;
    height: 15px;
    background-size: contain;
    transition: transform var(--transition);
}

.article__link:hover .article__title::after {
    transform: translateX(0);
}

.article__img {
    margin-bottom: 30px;
    border-radius: 40px;
    -webkit-box-shadow: 4px 4px 8px 0px rgba(34, 60, 80, 0.2);
    -moz-box-shadow: 4px 4px 8px 0px rgba(34, 60, 80, 0.2);
    box-shadow: 4px 4px 8px 0px rgba(34, 60, 80, 0.2);
}

.quote {
    padding-top: 24px;
}

.quote__text {
    grid-column: 2 /span 7;
    padding: 54px 75px;
    border: 1px solid var(--dark);
    border-radius: 40px;
}

.disclaimer {
    padding-top: 14px;
    row-gap: 0;
}

.disclaimer__text {
    grid-column: 6 /12;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0;
    font-size: 24px;
    line-height: var(--line-height15);
}

.disclaimer__text:not(:last-child) {
    margin-bottom: 0;
}

.anchor {
    grid-column: 2/span 3;
    align-self: self-start;
    position: sticky;
    top: 70px;

}

.anchor__list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 30px;
    border: 1px solid var(--dark);
    border-radius: 40px;
    counter-reset: item 0;
}

.anchor__item {
    display: flex;
    gap: 8px;
    counter-increment: item 1;
}



.anchor__item::before {
    content: counter(item)".";
}

.anchor__link {
    font-size: 1em;
    transition: color var(--transition), text-decoration var(--transition);
}

.anchor__link:hover {
    color: #fe6c53;
}

.anchor__link--active {
    color: #fe6c53;
    text-decoration: underline;
}

.card .hero__article {
    grid-column: 6/-1;
}

.card__list {
    counter-reset: card 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.card__item {
    display: grid;
    align-items: baseline;
    justify-items: self-end;
    grid-template-columns: repeat(7, 1fr);
    gap: 20px;
    padding: 30px 0;
    border: 1px solid var(--dark);
    border-radius: 40px;
    counter-increment: card 1;
    animation: background-animation;
    animation-timeline: view(block 50% 10%);
    scroll-padding-top: 100px;
    animation-fill-mode: both;
}

/* .card__item:target {
    background-color: #ececec;
} */

.card__item::before {
    content: counter(card);
    grid-column: 1/2;
    padding: 0 12px;
    border: 1px solid var(--dark);
    border-radius: 50%;
    font-weight: 600;
    font-size: 24px;
    line-height: var(--line-height15);
}

.card__item-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    list-style: disc;
}

.card__item-list:not(:last-child) {
    margin-bottom: 12px;
}

.card__article {
    grid-column: 2/-1;
}

.card__text,
.card__title,
.card__item-list,
.card__caption,
.card__image {
    padding-right: 70px;
}

.card__caption {
    font-size: 10px;
    line-height: 1.2;
}

.card__image:has(+ .card__caption) {
    margin-bottom: 8px;
}

.card__text:not(:last-child):has(+ ul) {
    margin-bottom: 12px;
}

.card__text:not(:last-child):has(+ img) {
    margin-bottom: 30px;
}

.card__title {
    font-size: 24px;
    line-height: var(--line-height15);
    font-weight: 600;
    margin-bottom: 20px;
}

.quiz__wrap {
    display: flex;
    flex-direction: column;
    /* align-items: center; */
    gap: 24px;
    border: 1px solid var(--dark);
    border-radius: 40px;
    padding: 50px 75px;
}

.quiz__counter {
    display: none;
    align-self: flex-start;
    border: 1px solid var(--dark);
    border-radius: 40px;
    padding: 5px 14px;
    font-weight: 600;
    font-size: 24px;
    line-height: var(--line-height15);
    transform: translateX(-25px);

}

.button {
    border: 1px solid var(--dark);
    border-radius: 40px;
    padding: 12px 30px;
    min-width: 250px;
    background-color: transparent;
    text-align: left;
    cursor: pointer;
    color: var(--dark);
    font-size: 16px;
    line-height: var(--line-height15);
    font-weight: 400;
    transition: background-color 0.3s, color 0.3s;
}

.button--back {
    display: block;
    font-size: 12px;
    min-width: 0;
    padding: 8px 25px;

}

.button--back::before {
    content: '\2190';
    margin-right: 8px;
    transition: transform var(--transition);
}

.button--back:hover::before {
    transform: translateX(-10px);
}

.button:hover {
    background-color: var(--dark);
    color: var(--light);
}

.button__start,
.button__continue {
    text-align: center;
    align-self: center;
}

.buttons__content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.button_passive {
    background-color: gray;
}

.button_wrong {
    background-color: red;
}

.button_correct {
    background-color: green;
}

#mypopover::backdrop {
    background-color: rgba(0, 0, 0, 0.8);
}

.button__continue {
    opacity: 0;
    animation-name: fadeIn;
    animation-duration: 0.5s;
    animation-delay: 0.2s;
    animation-timing-function: ease-out;
    animation-fill-mode: forwards;

}

.footer {
    padding: 16px 0 0;
}

.footer__logo-wrap {
    display: flex;
    padding: 32px 0;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--dark);
}

.footer__logo--client {
    max-width: 200px;
}

.footer__disclaimer {
    font-size: 0.9em;
    padding-bottom: 15px;
}

.image-wrap {

    line-height: 0;
    margin-bottom: 20px;
}

.img__text {
    width: 100%;
}

.img__description {
    font-size: 1em;
    line-height: 1.5;
    border: 1px solid var(--dark);
    border-top: none;
    border-radius: 0 0 40px 40px;
    padding: 20px;
}

.hide-desktop {
    display: none;
}

@media (min-width:1921px) {
    body {
        font-size: 20px;
    }
}

@media (max-width:1699px) {
    .article-list__list {
        grid-template-columns: repeat(4, 265px);
    }
}

@media (max-width:1399px) {

    .hero__title-wrap,
    .hero__article {
        grid-column: 6 /-1;
    }

    .anchor {
        grid-column: 2/span 4;
    }

    .article-list__list {
        grid-template-columns: repeat(3, 265px);
    }
}

@media (max-width:1024px) {
    body {
        flex-direction: column;
    }

    .anchor {
        display: none;
    }

    .aside {
        width: 100%;
    }

    .hero__title-wrap,
    .hero__article {
        grid-column: 1 /-1;
        padding-left: 20px;
        padding-right: 20px;
    }

    .quote__text {
        padding: 30px;
    }

    .footer__container {
        padding: 0;
    }

    .footer__logo-wrap,
    .footer__disclaimer {
        padding-left: 20px;
        padding-right: 20px;
    }



    .partner {
        flex-direction: row;
        grid-column: 2/13;
        align-items: flex-start;
        gap: 10px;
    }

    .main {
        padding-right: 0;
    }

    .hide-mobile {
        display: none;
    }

    .hide-desktop {
        display: block;
    }

    .partner__logo {
        width: auto;
        height: 100%;
    }

    .subtitle {
        line-height: 1.2;
    }
}

@media (max-width: 550px) {
    .title {
        font-size: 3.5em;
    }

    .footer__logo-wrap {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .aside {
        padding: 10px;
    }

    .partner {
        grid-column: 1/-1;
        padding-left: 20px;
        padding-right: 20px;
    }

    .partner__text {
        font-size: 0.8em;
    }
}


@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes background-animation {
    to {
        background-color: #ececec;
        ;
    }
}