:root {
    --color-text-pink: #fe42b4;
    --color-text-black: #0b002e;
    --color-text-regular: #242424;
    --color-text-white: #fff;
    --color-text-gray: #757575;
    --color-background-violet: #5800c3;
    --color-background-gray: #e9ecef;
    --color-background-white: #ffffff;
    --color-stroke-gray: #ced4da;
    --color-state-active: #2f0167;
    --color-state-hover: #48019f;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    color: var(--color-text-regular);
    font-size: 20px;
    font-family: "Roboto", sans-serif;
    font-weight: 400;
    line-height: 30px;
}

/* layout */

main, .container {
    width: 1204px;
    margin: 0 auto;
}

aside.sidebar {
    margin-top: 127px;
    margin-right: 30px;
    flex: 0 0 278px;
}

main {
    display: flex;
    flex-direction: row;
    margin-bottom: 120px;
}

.sidebar section {
    margin-bottom: 62px;
    width: 100%;
}

.sidebar .sticky {
    position: sticky;
    top: 40px;
}

/* sticky footer */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1 0 auto;
}

main > article{
    flex: 1 1 auto;
    min-width: 0;
}

main > section{
    flex: 1;
}

footer {
    flex-shrink: 0;
}

/* basic elements */

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Text */
h1 {
    font-size: 40px;
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    line-height: 48px;
}

h2 {
    font-size: 24px;
    font-weight: 600;
}

.fakeH3,
h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--color-text-black);
    display: block;
}

h4 {
    font-size: 24px;
    font-weight: 600;
    color: var(--color-background-violet);
    line-height: 30px;
}

h5 {
    font-size: 14px;
    font-weight: 400;
    line-height: 18px;
}


a {
    color: var(--color-background-violet);
}

a:hover {
    color: var(--color-state-hover)
}

a:active {
    color: var(--color-state-active)
}

p {
    margin: 0;
}

b {
    font-weight: 500;
}

img {
    display: block
}

figure, figcaption {
    color: var(--color-text-gray);
    font-size: 16px;
    margin: 0;
    padding: 0;
    line-height: 20px;
}

hr {
    border-top: 3px solid var(--color-background-violet);
}

input[type="text"], textarea {
    caret-color: var(--color-background-violet);
}

input[type="text"]:disabled {
    background-color: var(--color-background-gray);
    border: 1px solid var(--color-stroke-gray);
}

fieldset {
    border: 0;
    padding: 0;
    margin: 0;
}


button {
    font-size: 18px;
    font-weight: 500;
    text-align: center;
    line-height: 24px;
    cursor: pointer;
}

button {
    background: var(--color-background-violet);
    color: var(--color-text-white);
    border-radius: 8px;
    padding: 10px 22px;
    font-weight: 500;
    line-height: 24px;
    border: none;
}

button:hover, button.outline:hover {
    background: var(--color-state-hover);
    border-color: var(--color-state-hover);
    color: var(--color-text-white);
}

button:active, button.outline:active {
    background: var(--color-state-active);
    border-color: var(--color-state-active);
    color: var(--color-text-white);
}

button:disabled {
    opacity: 0.64
}

button.outline {
    background: transparent;
    border: 1px solid var(--color-background-violet);
    color: var(--color-background-violet)
}

button.outline:disabled:hover, button.outline:disabled:active {
    background: transparent;
    border: 1px solid var(--color-background-violet);
    color: var(--color-background-violet)
}

button:disabled:hover, button:disabled:active {
    background: var(--color-background-violet);
}

button.as-link {
    background: none;
    color: var(--color-background-violet);
    text-decoration: underline;
    font-size: 20px;
}

button.as-link:hover {
    color: var(--color-state-hover)
}

button.as-link:active {
    color: var(--color-state-active);
}

/* RADIO INPUT */
.radio {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

.radio input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.radio-icon {
    width: 16px;
    height: 16px;
    border: 1px solid var(--color-text-gray);
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    position: relative;
    transition: border-color 0.2s;
    background: #fff;
}

.radio input:checked+.radio-icon {
    border: 4px solid var(--color-background-violet)
}

.radio input:checked+.radio-icon::after {
    transform: translate(-50%, -50%) scale(1);
}

/* Hover */
.radio:hover .radio-icon {
    border-color: var(--color-background-violet);
}


/* cookies */
.initial-state .cookie-banner__actions {
    display: flex;
    justify-content: space-between;
}

.cookie-banner .container {
    margin: 60px auto;
}

.cookie-banner p {
    margin: 24px 0 37px 0;
}

.cookie-banner .container>div {
    max-width: 898px;
    padding-left: 3px;
}

.cookie-banner.accepted .initial-state {
    display: none;
}

.cookie-banner.accepted .accepted-state {
    display: block;
}

article ul {
    padding-left: 30px;
    list-style: disc;
    list-style: url(icons/dot.svg);
}



/* header */
header #logoContainer {
    height: 68px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: var(--color-background-violet);
    border-radius: 0px;
}

header .burger {
    display: none;
}

header nav {
    overflow: hidden;
    background-color: var(--color-background-gray);
}

header nav div.container {
    display: flex;
    justify-content: space-around;
    align-content: center;
    align-items: center;
    /* position: relative; */
}

header .logoHeader {
    font-size: 21px;
    line-height: 30px;
    font-family: "Montserrat", sans-serif;
    font-weight: 800;
    color: var(--color-text-regular);
    margin: 21px 0 16px 0;
    text-transform: uppercase;
    width: 371px;
    text-decoration: none;
}

header ul {
    display: flex;
    justify-content: space-evenly;
    flex-grow: 1;
}

header .menu a {
    display: inline-block;
    text-decoration: none;
    color: var(--color-text-regular);
    font-weight: 600;
    font-size: 20px;
    line-height: 30px;
}

header .menu .active a,
header .menu li:hover a {
    color: var(--color-background-violet)
}

header .menu li a:active {
    color: var(--color-state-active)
}

.search {
    margin: 0;
}

.search input {
    height: 44px;
    width: 278px;
    border-radius: 8px;
    border: 1px solid var(--color-stroke-gray);
    padding-left: 44px;
    background: #fff 0px center url(./icons/search-input.svg) no-repeat;
    font-size: 16px;
    line-height: 20;
    margin-left: 0;
    margin-right: 4px;
}

.search input:focus {
    box-shadow: 0px 0px 0px rgba(88, 0, 195, 0.45);
    border: 0.5px solid #5800c3;
    outline: 3px solid #ae7fd7;
}


/* footer */

footer #copyright {
    background: var(--color-background-violet);
    color: var(--color-text-white);
    height: 80px;
}

footer #copyright .container {
    display: flex;
    align-content: center;
    align-items: center;
    height: 100%;
    text-transform: uppercase;
    justify-content: space-between;
}

footer .menuContainer {
    display: flex;
    justify-content: space-between;
}

footer .menuContainer .column {
    width: 278px;
}

.copyright {
    font-weight: 600;
    padding: 0;
    margin: 0;
}

#copyright .socials {
    display: flex;
    margin-right: -2px;
}


.socials a {
    cursor: pointer;
    margin-right: 11px;
}

.socials a:hover path {
    fill: var(--color-text-pink)
}


#bottomMenu {
    background-color: var(--color-background-gray);
    padding-bottom: 36px;
}

#bottomMenu h4 {
    padding: 36px 0 11px 0;
    margin: 0;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 21px;
}

#bottomMenu h5 {
    font-size: 20px;
    line-height: 30px;
    margin: 0;
    padding: 0;
    font-weight: 600;
    color: var(--color-text-regular);
}

#bottomMenu li {
    margin-bottom: 4px;
}

#bottomMenu a {
    text-decoration: none;
    color: var(--color-text-gray);
}

#bottomMenu a:hover {
    color: var(--color-text-pink)
}

#bottomMenu li.active a,
#bottomMenu a:active {
    color: var(--color-text-regular)
}

article h1 {
    margin-bottom: 0px;
}

main header {
    margin: 40px 0 20px 0;
}

main header p {
    color: var(--color-text-gray);
    font-size: 16px;
    max-width: 900px;
}

/* share */

.share {
    margin: 0 auto 120px auto;
    text-align: center;
}

.share nav ul {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.share nav li {
    margin: 0 16px 0 16px;
}

.share a:hover path {
    fill: var(--color-text-pink)
}

.share h2,
.share_fakeH2 {
    margin-top: 0;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    display: block;
}


/* mobile */
@media screen and (max-width: 1300px) {
    main, .container {
        width: 90%;
        margin: 0 auto;
    }
    main{
        margin-bottom: 120px;
    }
    .search input{
        width: 100px;
    }
    /* aside.sidebar { */
        /* width: 25%; */
        /* margin-right: 3%; */
    /* } */

    main article{
        overflow: hidden;
        max-width: 72%;
    }

    article img{
        max-width: 100%;
    }

    nav.toc{
        width: 100%;
    }
    div:has(table) {
        overflow-y: scroll;
    }
}
@media screen and (max-width: 1000px) {
    main, .container {
        width: 90%;
        margin: 0 auto;
    }

    main {
        display: block;
        margin-bottom: 120px;
    }

    main article {
        max-width: 100%;
    }

    img {
        max-width: 100%;
    }

    header .logoHeader {
        width: auto;
        font-size: 20px;
        margin-right: 30px;
    }

    header nav div.container {
        position: relative;
    }

    .search {
        width: 48px;
    }

    .search input {
        width: 0px;
    }

    .search input:focus {
        position: absolute;
        width: 94%;
        right: 0%;
        top: 10px;
    }

    aside.sidebar {
        width: 100%;
        display: flex;
        margin-top: 40px;
        height: auto;
    }

    aside.sidebar .sticky {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-content: center;
        align-items: center;
    }

    .sidebar section {
        margin-bottom: 0;
    }

    .sidebar h5 {
        font-size: 16px;
        font-weight: 600;
        line-height: 30px;
        margin: 0 0 16px 0;
    }


    .toc {
        width: auto;
    }
}

@media screen and (max-width: 950px) {
    html, body {
        overflow-x: hidden;
    }

    body {
        width: 100%;
        display: block;
    }

    main,
    .container {
        width: 90%;
        padding: 0 5%;
        margin: 0 auto;
    }

    main{
        margin-bottom: 120px !important;
    }

    .search input:focus{
        width: 91%;
        left: 2%;
    }
}

@media screen and (max-width: 850px) {

    header .menu,
    header .search {
        display: none;
    }

    header .burger {
        /* float: right; */
        display: inline-block;
        width: 56px;
        height: 40px;
        background: transparent center url(icons/hamburgerMenu.svg) no-repeat;
        border: 1px solid var(--color-stroke-gray);
    }

    header .burger:focus {
        outline: 3px solid #ae7fd7;
    }

    header nav div.container {
        display: block;
        /*justify-content: space-between;*/
        /* position:initial; */
    }

    header .logoHeader {
        margin: 15px 0;
        width: calc(100% - 61px);
        display: inline-block
    }

    .open .menu {
        display: block;
        margin-top: 8px;
    }

    header .menu li {
        margin-bottom: 20px;
    }

    .open .search {
        display: block;
        width: 100%;
        margin: 25px 0 20px 0;
    }

    .open .search input {
        width: calc(100% - 48px);
    }

    .open .search input:focus {
        position: relative;
        top: auto;
        left: auto;
    }
}

@media screen and (max-width: 740px) {
    article .mobileMenu{
        margin-top: 40px;
        margin-bottom: 40px;
        display: block;
    }
    article .mobileMenu nav{
        width: 100%;
    }
    aside.sidebar{
        display: none;
    }
    .initial-state .cookie-banner__actions {
        display: block;
    }

    .cookie-banner__actions button {
        display: block;
        width: 100%;
        margin-bottom: 20px
    }

    .ratingModule {
        display: none;
    }

    footer .menuContainer {
        display: block;
    }

    footer .menuContainer .column {
        margin-bottom: 20px;
        width: 100%;
    }

    .menuContainer .column ul {
        display: none;
    }

    .menuContainer .column.open ul {
        display: block;
    }

    .collapsable {
        position: relative;
    }

    .collapsable:after {
        display: block;
        content: "";
        position: absolute;
        right: 0;
        top: 0px;
        width: 18px;
        height: 100%;
        background: center center url(icons/accordeon_arrow.svg) no-repeat;
    }

    .open .collapsable:after {
        transform: rotate(-180deg) !important;
    }

    aside.sidebar .sticky {
        display: block;
    }

    .mobileMenu .collapsable,
    .sticky .collapsable {
        background: var(--color-background-gray);
        padding: 16px 0px 16px 6%;
        margin-left: -6%;
        width: 106%;
        margin-top: 0;
    }

    aside.sidebar {
        margin-top: 0;
    }

    .mobileMenu .collapsable::after,
    .sticky .collapsable:after {
        right: 6%;
        transform: rotate(-180deg);
    }

    .mobileMenu .collapsable::after,
    .sticky .open .collapsable:after {
        transform: rotate(0deg);
    }

    .mobileMenu.open nav,
    .sticky .open nav {
        display: none;
    }

    main article {
        overflow: visible;
        overflow-wrap: break-word;
        word-break: break-word;
        /* overflow: scroll; */
        /* padding: 0 0px 0 9px; */
    }

    article div.buttons {
        display: block
    }

    article div.buttons button {
        display: block;
        width: 100%;
        margin-bottom: 24px;
    }

    article .promo-box {
        margin-left: -6%;
        width: 112%;
    }

    .scrollable {
        overflow: scroll;
    }

    article figure.definition {
        padding-right: 20px;
    }

    footer #copyright {
        height: auto;
    }

    footer #copyright .container {
        height: auto;
        display: block !important;
    }

    #copyright .copyright {
        display: block;
        margin: 20px 0;
    }

    .socials a {
        margin-left: 0;
        margin-right: 12px;
        margin-bottom: 20px
    }

    .cookie-banner .container {
        margin-top: 31px;
        margin-bottom: -3px;
    }

    .cookie-banner p {
        margin-bottom: 23px;
    }

    #button_cookie_reject {
        margin-bottom: 12px;
    }

    #header #logoContainer {
        height: 56px;
    }

    main, .container {
        width: 94%;
        padding: 0;
        margin: 0 auto;
    }

    header .logoHeader {
        font-size: 18px;
    }

    main header {
        margin: 34px 0 20px 0;
    }

    article h1 {
        margin: 0 0;
        line-height: 31px;
        font-size: 28px;
    }

    article figure.definition h2 {
        margin-bottom: 37px;
    }

    article figure.definition h3 {
        margin-bottom: 25px;
    }

    .imageContainer {
        height: 256px;
        overflow: hidden;
        position: relative;
    }

    .promo-card img {
        max-width: unset;
        position: absolute;
        height: 100%;
        object-fit: cover;
        object-position: 65%;
    }

    .promo-card__content {
        padding: 32px 31px 40px 31px;
    }
}


.visually-hidden{
    display: none;
}

.com-finder.finder{ width: 100%; }

#search-result-list li.result__item {
    padding: 20px 0 19px 0;
    border-bottom: 1px solid var(--color-text-gray);
    background: center right url(icons/chevron.svg) no-repeat;
    border-top: 0;
}

#search-result-list .result__item h3 {
        margin: 0 0 12px 0;
        font-size: 20px;
        color: var(--color-background-violet);

}

#search-result-list .result__item a{
    text-decoration: none;
}

#search-result-list .result__description{
    max-width: 897px;
    padding-right: 30px;
    color: var(--color-text-regular);
}
.com-finder__counter.search-pages-counter{
    text-align: right;
    font-size: 16px;
    line-height: 20px;
    color: var(--color-text-gray);
}
#search-query-explained{
    color: var(--color-text-gray);
}