:root {
    --color-dark: #212121;
    --color-dark-gray: #707070;
    --color-medium-gray: #C5C4C4;
    --color-light-gray: #F6F7F8;
    --color-link: #00798A;
    --color-border: #D9D9D9;
    --color-bg-light-green: rgba(151, 202, 209, 0.08);
    --padding-aside: 15px;
    --max-width: 1512px;

    background-color: white;
    color: var(--color-dark);
    font-family: "Roboto", sans-serif;
    font-size: 12px;
    font-weight: 400;
    font-style: normal;
    font-optical-sizing: auto;
    font-variation-settings: "wdth" 100;
}

body {
    line-height: 24px;
}

main {
    margin: auto;
    max-width: var(--max-width);   
}


/** Common **/
p {
    margin: 1rem 0;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--color-link);
    text-decoration: none;
}

.section {
    padding: 24px var(--padding-aside) 28px;
}

.h1 {
    font-size: 2.083rem;
    font-weight: 700;
    line-height: 3rem;
}
.h2, .h3 {
    font-weight: 600;
}
.h2 {
    font-size: 1.667rem;
    line-height: 3rem;
}
.h3 {
    font-size: 1.333rem;
    line-height: 2.25rem;
}

.btn {
    background-color: var(--color-link);
    color: white;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    border: none;
    border-radius: 6px;
    box-sizing: border-box;
    display: inline-block;
    padding: 0.3rem 1.2rem;
}
.btn:disabled {
    opacity: .7;
    cursor: not-allowed;
}
.btn:active {
    transform: translateY(1px);
}

.input {
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-size: 16px;
    box-sizing: border-box;
    padding: 11px 20px;
}

.hidden {
    display: none;
}

.dropdown-container {
    position: relative;
}

.dropdown-menu {
    background-color: white;
    box-shadow: 2px 2px 15px var(--color-medium-gray);
    border-radius: 8px;
    position: absolute;
    min-width: 100%;
    top: 100%;
    padding: 5px 12px;
    z-index: 1;
}

.search-highlight {
    background-color: orange;
    color: #000;
}

.fade-in {
  opacity: 0;
  transform: scale(0.95);
  filter: blur(5px);
  transition: opacity 0.8s ease, transform 0.8s ease, filter 0.8s ease;
}

.fade-in.show {
  opacity: 1;
  transform: scale(1);
  filter: blur(0);
}

/** Header **/
.header-top {
    display: flex;
    flex-wrap: wrap;
    box-sizing: border-box;
    max-width: var(--max-width);
    margin: auto;
    padding: 6px 10px 0 20px;
}

.header-top .logo {
    margin-right: 40px;
}

.header-top .logo img {
    position: relative;
    left: 3px;
    top: -2px;
}

.search-fields {
    order: 3;
    width: 100%;
    display: flex;
    margin-right: 20px;
    margin-top: 5px;
}

.input-search {
    background-image: url('../img/icons/input_search.svg');
    background-repeat: no-repeat;
    background-position: 9px center;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    padding-left: 35px;
    flex: 1 1 50%;
}

.input-filter-city {
    border-radius: 0;
    flex: 1 1 calc(50% - 42px);
    display: none;
}

.input-search-btn {
    color: white;
    background-color: #F65858;
    border: none;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    cursor: pointer;
    padding: 7px;
    flex: 0 0 42px;
}

.actions {
    margin-left: auto;
}

.action-link {
    color: var(--color-text);
    text-decoration: none;
}
.action-link:not(:first-child) {
    margin-left: 20px;
}
.action-link.btn {
    color: white;
    border-radius: 6px;
}
.action-link:not(.btn) {
    background-color: transparent;
    border: none;
    font-family: "Roboto", sans-serif;
    font-size: 1rem;
    line-height: 2rem;
    font-weight: 400;
    cursor: pointer;
    padding: 0;
}

.action-link svg {
    width: 1.4rem;
    height: 1.4rem;
    vertical-align: middle;
}

.language-menu {
    display: inline-block;

}
.language-menu .dropdown-menu bdi {
    font-weight: 400;
    white-space: nowrap;
}
.language-menu .dropdown-menu bdi.active {
    font-weight: 800;
}


/** Shared **/
/** Events **/
.events-list {
    padding-top: 5px;
}

.event-card-link {
    font-size: 0.715em;
    line-height: 1.02rem;
    font-weight: 500;
    border-top: 1px solid var(--color-border);
    color: var(--color-dark);
    box-sizing: border-box;
    position: relative;
    padding: 10px 0 22px;
    display: flex;
    gap: 2%;
}

.event-img {
    flex: 1 1 22%;
}

.event-img img {
    border-radius: 8px;
}

.event-description {
    flex: 1 1 67%;
}
.event-description p {
    margin: 0;
}

.event-date {
    color: #7C6F50;
    text-transform: uppercase;
}

.event-name {
    font-size: 0.818rem;
    line-height: 1.226rem;
}

.event-description .event-date,
.event-description .event-name {
    margin: 0.25rem 0;
}

.event-category {
    color: var(--color-dark-gray);
    font-weight: 400;
}

.event-online {
    color: var(--color-dark-gray);
    font-size: 0.6rem;
}
.event-online::before {
    content: " ";
    display: inline-block;
    width: 0.8rem;
    height: 0.8rem;
    margin-right: 0.2rem;
    background-image: url("../img/icons/event_online.svg");
    background-repeat: no-repeat;
    background-size: 100%;
    vertical-align: text-bottom;
}

.event-description .event-attendees {
    color: var(--color-dark-gray);
    margin-top: 14px;
}

.event-free {
    display: none;
}


/** Sections - Page 1 **/
/* 01 - Hero */
.section-hero {
    padding-bottom: 15px;
}

.hero-visual img {
    display: block;
    margin: auto;
    width: 60%;
}

/* 02 - Events near */
.section-events-near {
    padding-top: 0;
}

.header-events-list {
    display: flex;
    align-items: center;
}

.btn-events-change-city {
    background-color: var(--color-bg-light-green);
    color: var(--color-link);
    background-image: url('../img/icons/edit.svg');
    background-repeat: no-repeat;
    background-position: 97% center;
    background-size: 11%;
    border-radius: 4px;
    margin-left: 8px;
    padding: 7px 40px 6px 8px;
    font-weight: 600;
    font-size: 1.05rem;
    position: relative;
    top: -2px;
}

.events-list-all-events-link {
    display: none;
}

/* 03 - Events upcoming online */
.section-events-upcoming-online {
    padding-top: 12px;
}

/* 04 - Signup */
.section-signup {
    background-color: var(--color-bg-light-green);
}

.signup-visual img {
    display: block;
    margin: auto;
    width: 238px;
}

.signup-text {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.signup-text p {
    margin: 0.5rem 0 1.5rem;
}

.btn-signup {
    background-color: #E32359;
    font-size: 1.333rem;
    line-height: 2rem;
    font-weight: 500;
    border-radius: 8px;
    padding: 0.67rem 5.77rem;
}

/* 05 - Categories */
.list-top-categories {
    padding-top: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
}

.top-category-item {
    background-color: var(--color-bg-light-green);
    border-radius: 8px;
    text-align: center;
    width: 135px;
    height: 112px;
    box-sizing: border-box;
}

.top-category-link {
    color: var(--color-dark);
    font-size: 1.333rem;
    line-height: 2rem;
    font-weight: 500;
    display: block;
    padding: 20px;
}

.top-category-link img {
    display: block;
    margin: auto;
}

/* 06 - Cities */
.section-cities-text {
    color: var(--color-dark-gray);
    margin: 0;
}

.list-cities {
    display: flex;
    flex-wrap: wrap;
    gap: 5%;
}

.city-item {
    text-align: center;
    flex: 0 0 155px;
    box-sizing: border-box;
}

.city-link-name {
    color: var(--color-dark);
    font-size: 1.333rem;
    line-height: 2rem;
    font-weight: 500;
}

/* 07 - Help */
.section-help {
    padding-bottom: 0;
}

.list-help-items {
    padding-top: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.help-item {
    background-color: var(--color-bg-light-green);
    box-sizing: border-box;
    padding: 14px 20px 12px 66px;
    background-repeat: no-repeat;
    background-size: 26px;
    background-position: 24px 19px;
    flex: 1 1 340px;
}
.help-item.help-item-search {
    background-image: url("../img/icons/search.svg");
}
.help-item.help-item-start {
    background-image: url("../img/icons/plus.svg");
}

.help-item-text {
    font-size: 0.83rem;
    line-height: 1.24rem;
    max-width: 80%;
}
.help-item-text .sub-heading {
    font-size: 1rem;
}
.help-item-text p {
    margin: 0.5rem 0;
}

/* 08 - Articles */
.section-articles {
    padding-top: 15px;
    padding-bottom: 80px;
}

.section-articles-text {
    display: none;
}

.list-articles {
    padding-top: 22px;
    display: flex;
    flex-direction: column;
}

.article {
    margin-bottom: 45px;
    flex-grow: 1;
}

.article-image {
    width: 100%;
}

.article-text {
    width: 75%;
}

.article-heading {
    margin: 1rem 0;
}

.article-intro {
    line-height: 1.92rem;
}


/** Sections - Page 2 **/
/* 01 - Filtered events */
.events-filter {
    padding-top: 15px;
    padding-bottom: 23px;
}

.btn-events-filter {
    appearance: none;
    color: var(--color-link);
    background-color: transparent;
    border: none;
    border-bottom: 4px solid var(--color-link);
    font-size: 1.666rem;
    line-height: 2.333rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0 2px;
}

.events-filter-wrapper {
    padding: 12px 0;
    width: calc(100% + var(--padding-aside));
    overflow-x: scroll;
}

.events-filter-form {
    display: flex;
    gap: 20px;
}

.events-filter-select {
    appearance: none;
    background-color: var(--color-light-gray);
    background-image: url("../img/icons/filter_select_marker.svg");
    background-repeat: no-repeat;
    background-position: calc(100% - 18px) center;
    border: none;
    border-radius: 40px;
    font-size: 1.166rem;
    line-height: 1.166rem;
    font-weight: 500;
    padding: 15px 45px 15px 18px;
    max-width: 150px;
    overflow-x: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.events-filtered-map-block {
    display: none;
}



/** Footer **/
.footer-bottom {
    background-color: var(--color-dark);
    color: var(--color-light-gray);
    font-size: 1.167rem;
}

.section-footer {
    box-sizing: border-box;
    max-width: var(--max-width);
    margin: auto;
    padding-top: 0;
    padding-bottom: 0;
}

.footer-cta-block {
    font-size: 1.3334rem;
    font-weight: 600;
    display: flex;
}

.footer-cta-slogan {
    border-bottom: 1px solid var(--color-border);
    flex: 1 1 auto;
    box-sizing: border-box;
    padding: 43px 0 24px;
}
.footer-cta-btn {
    box-sizing: border-box;
    padding: 43px 0 24px;
}

.footer-btn {
    background-color: transparent;
    border: 2px solid white;
    border-radius: 6px;
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
}

.footer-nav {
    display: flex;
    gap: 4%;
}

.footer-menu {
    flex: 1 1 33%;
}

.footer-menu-title {
    font-size: 1.3334rem;
}
.footer-nav .footer-menu-title {
    margin: 2.5rem 0 0.5rem;
}

.footer-menu-item {
    margin: 0.3rem 0;
}

.footer-menu-link {
    color: var(--color-medium-gray);
    text-decoration: none;
}

.footer-social-block {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.footer-social-item {
    display: inline-block;
}
.footer-social-item:not(:last-child) {
    margin-right: 30px;
}

.footer-social-menu-app-stores {
    display: none;
}

.footer-menu-service {
    padding: 40px 0 35px;
}

.footer-copyright {
    color: white;
}

.footer-menu-service .footer-menu-item:nth-child(n + 2) {
    display: none;
}



@media screen and (min-width: 768px) {
    :root {
        font-size: 16px;
    }


    /** Common **/
    .section {
        padding-top: 35px;
        padding-bottom: 35px;
    }

    .h1 {
        font-size: 2.625rem;
        line-height: 3.25rem;
    }
    .h2 {
        font-size: 1.75rem;
        line-height: 2.25rem;
    }
    .h3 {
        font-size: 1.125rem;
        line-height: 1.75rem;
    }

    .btn {
        border-radius: 8px;
        padding-top: 0.525rem;
        padding-bottom: 0.525rem;
    }


    /** Header **/
    .header-top {
        font-size: 0.875rem;
        font-weight: 500;
        padding: 11px 50px 11px 24px;
        align-items: center;
        margin-bottom: 36px;
    }

    .header-top .logo img {
        left: 0;
        top: 4px;
    }

    .search-fields {
        order: 0;
        width: 41%;
        margin-top: 0;
        margin-right: 0;
    }

    .btn.input-search-btn {
        border-top-left-radius: 0;
        border-bottom-left-radius: 0;
        padding: 7px;
    }

    .action-link:not(:first-child) {
        margin-left: 22px;
    }
    .action-link:not(.btn) {
        font-weight: 500;
    }


    /** Shared **/
    /** Events **/
    .event-card .event-card-link {
        font-size: 1rem;
        padding: 15px 0 50px;
    }

    .event-card .event-name {
        font-size: 1rem;
        line-height: 1.5rem;
        font-weight: 500;
    }
    
    .event-card .event-date {
        font-size: 0.875rem;
        line-height: 1.25rem;
    }

    .event-card .event-category {
        font-size: 0.875rem;
        line-height: 1.25rem;
        font-weight: 500;
    }

    .event-card .event-online {
        font-size: 0.75rem;
        line-height: 1rem;
        background-color: white;
        border-radius: 4px;
        box-sizing: border-box;
        position: absolute;
        top: 23px;
        left: 8px;
        padding: 1px 15px 1px 4px;
    }
    .event-card .event-online::before {
        width: 1rem;
        height: 1rem;
    }

    .event-card .event-attendees {
        font-size: 0.875rem;
        line-height: 1.25rem;
        font-weight: 400;
        position: relative;
        top: 35px;
    }

    /** Events - tiled **/
    .events-list.events-list-tileable {
        display: flex;
        flex-wrap: wrap;
        gap: 37px;
        padding-top: 25px;
    }

    .events-list-tileable .event-card {
        flex: 0 0 270px;
        height: 400px;
    }

    .events-list-tileable .event-card .event-card-link {
        border: none;
        flex-direction: column;
        padding: 0;
    }

    .events-list-tileable .event-card .event-img {
        flex: 0 0 153px;
        height: 153px;
        border-radius: 8px;
        background-image: var(--event-bg-image);
        background-size: cover;
        background-position: center;
    }

    .events-list-tileable .event-card .event-img img {
        display: none;
    }

    .events-list-tileable .event-card .event-description {
        display: flex;
        flex-direction: column;
    }

    .events-list-tileable .event-card .event-name {
        font-size: 1.25rem;
        font-weight: 600;
    }
    
    .events-list-tileable .event-card .event-date {
        color: var(--color-dark);
        margin-top: 1rem;
        order: 1;
    }

    .events-list-tileable .event-card .event-category {
        margin-top: 0.875rem;
    }
    
    .events-list-tileable .event-card .event-online {
        top: 5px;
        left: 10px;
    }
    
    .events-list-tileable .event-card .event-attendees {
        color: var(--color-dark);
        font-size: 1rem;
        line-height: 1.5rem;
        margin-top: 0.5rem;
        order: 2;
        top: 0;
    }

    .events-list-tileable .event-card .event-free {
        display: inline-block;
    }

    .events-list-tileable .event-card .event-date::before,
    .events-list-tileable .event-card .event-attendees::before,
    .events-list-tileable .event-card .event-free::before {
        content: " ";
        display: inline-block;
        width: 1.2rem;
        height: 1.2rem;
        margin-right: 0.5rem;
        background-repeat: no-repeat;
        background-size: 100%;
        vertical-align: text-bottom;
    }    
    .events-list-tileable .event-card .event-date::before {
        background-image: url("../img/icons/event_calendar.svg");
    }
    .events-list-tileable .event-card .event-attendees::before {
        background-image: url("../img/icons/event_attendees.svg");
    }
    .events-list-tileable .event-card .event-free::before {
        margin-left: 1rem;
        background-image: url("../img/icons/event_ticket.svg");
    }



    /** Sections - Page 1 **/
    /* 01 - Hero */
    .section-hero {
        display: flex;
    }

    .hero-article {
        flex: 1 1 50%;
    }

    .hero-article p {
        margin: 1.5rem 0;
        line-height: 1.5rem;
    }

    .hero-visual {
        flex: 1 1 55%;
    }

    .hero-visual img {
        width: auto;
    }

    /* 02 - Events near */
    .section-events-near {
        padding-top: 85px;
    }

    .btn-events-change-city {
        border-radius: 6px;
        margin-left: 16px;
        padding: 10px 55px 10px 12px;
        font-size: 1.2rem;
        top: 0;
    }

    .events-list-all-events-link {
        display: inline;
        font-weight: 500;
        margin-left: auto;
    }

    /* 03 - Events upcoming online */
    .section-events-upcoming-online {
        padding-top: 0;
    }

    /* 04 - Signup */
    .section-signup {
        padding-left: 56px;
        padding-right: 56px;
        padding-bottom: 0;
    }

    .signup-article {
        display: flex;
    }

    .signup-visual {
        flex: 1 1 40%;
        order: 1;
    }

    .signup-visual img {
        width: auto;
        margin-right: 0;
        position: relative;
        top: -45px;
    }

    .signup-text {
        flex: 1 1 60%;
        align-items: flex-start;
    }

    .signup-text p {
        margin-top: 2rem;
    }

    /* 05 - Categories */
    .top-category-item {
        width: 131px;
    }

    .top-category-link {
        font-size: 1rem;
    }

    /* 06 - Cities */
    .section-cities-text {
        margin: 1rem 0;
    }

    .list-cities {
        padding-top: 14px;
        gap: 3.5%;
    }

    .city-item {
        flex: 0 0 205px;
    }

    /* 07 - Help */
    .section-help {
        padding-bottom: 30px;
    }

    .list-help-items {
        padding-top: 25px;
        gap: 3%;
    }

    .help-item {
        background-size: 40px;
        background-position: 24px 30px;
        padding: 28px 20px 22px 89px;
    }

    .help-item-text {
        font-size: 1rem;
        line-height: 1.5rem;
        max-width: 75%;
    }

    .help-item-text .sub-heading {
        font-size: 1.25rem;
    }

    .help-item-text p {
        margin: 0.8rem 0;
    }

    /* 08 - Articles */
    .section-articles {
        padding-top: 37px;
        padding-bottom: 7px;
    }

    .section-articles-text {
        color: var(--color-dark-gray);
        display: block;
        width: 840px;
        max-width: 80%;
    }

    .list-articles {
        padding-top: 10px;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 2.8%;
    }

    .article {
        flex: 1 1 375px;
        max-width: 483px;
    }

    .article-text {
        width: 95%;
    }

    .article-heading {
        margin: 1rem 0;
        width: 90%;
    }

    .article-intro {
        line-height: 1.5rem;
    }


    /** Sections - Page 2 **/
    /* 01 - Filtered events */
    .section-events-filtered {
        padding-top: 40px;
        padding-bottom: 80px;
        display: flex;
        gap: 2%;
    }

    .events-filtered-map-block {
        display: block;
        text-align: right;
    }

    .events-filtered-list-block, .events-filtered-map-block {
        flex: 1 1 50%;
    }

    .section-events-filtered .heading {
        font-size: 1.75rem;
        line-height: 3rem;
    }

    .events-filter {
        padding-top: 10px;
        padding-bottom: 40px;
    }

    .btn-events-filter {
        font-size: 1.25rem;
        line-height: 1.75rem;
    }

    .events-filter-wrapper {
        padding: 12px 0;
        width: auto;
        overflow-x: initial;
    }

    .events-filter-select {
        font-size: 0.875rem;
        line-height: 0.875rem;
    }

    .events-map-block {
        position: relative;
        display: inline-block;
        text-align: left;
    }


    .events-map-label-top {
        font-size: 0.75em;
        line-height: 1em;
        font-weight: 500;
        margin: 0.5rem 0 0;
    }
    
    .events-map-label-city {
        font-size: 1.25em;
        line-height: 1.75em;
        font-weight: 700;
        margin: 0 0 0.5rem;
    }

    .events-map-wrapper {
        position: relative;
    }

    .events-map-close {
        appearance: none;
        border: none;
        cursor: pointer;
        background-color: white;
        padding: 0;
        position: absolute;
        top: 11px;
        right: 15px;
    }
    .events-map-close img {
        display: block;
    }

    .btn-events-map-expand {
        font-size: 0.875rem;
        line-height: 1.25rem;
        font-weight: 500;
        color: var(--color-link);
        background-color: white;
        border: 2px solid var(--color-link);
        box-sizing: border-box;
        position: absolute;
        width: 40px;
        height: 40px;
        left: 0;
        right: 0;
        top: 0;
        bottom: 0;
        margin: auto;
        padding-left: 10px;
        padding-right: 10px;
    }

    .btn-events-map-expand-text {
        display: none;
    }

    .btn-events-map-expand img {
        vertical-align: text-top;
    }




    /** Footer **/
    .footer-bottom {
        font-size: 0.875rem;
    }

    .section-footer {
        padding-top: 0;
        padding-bottom: 0;
    }

    .footer-cta-block, .footer-menu-title {
        font-size: 1rem;
    }

    .footer-cta-block {
        border-bottom: 1px solid var(--color-border);
        box-sizing: border-box;
        gap: 4%;
    }

    .footer-cta-slogan {
        border: none;
        padding: 20px 0;
        flex-grow: 0;
    }

    .footer-cta-btn {
        padding: 22px 0;
    }

    .footer-btn {
        padding-top: 0.613rem;
        padding-bottom: 0.613rem;
    }

    .footer-nav {
        gap: 1%;
    }

    .footer-nav .footer-menu-title {
        margin: 1.313rem 0 0.438rem;
    }

    .footer-menu-item {
        margin: 0.25rem 0;
    }

    .footer-social-menu-title {
        margin-top: 1.875rem;
        margin-bottom: 0.438rem;
    }

    .footer-social-menu-app-stores {
        display: block;
    }

    .footer-menu-service .footer-menu-item,
    .footer-menu-service .footer-menu-item:nth-child(n + 2) {
        display: inline-block;
        margin-right: 30px;
    }
}

@media screen and (min-width: 1024px) {
    :root {
        --padding-aside: 0;
    }

    /** Common **/
    .section {
        max-width: 994px;
        margin-left: auto;
        margin-right: auto;
    }
    
    /** Header **/
    .input-filter-city {
        display: block;
    }


    /** Sections - Page 1 **/
    /* 01 - Hero */
    .hero-visual img {
        margin-left: 13%;
    }

    /** Sections - Page 2 **/
    /* 01 - Filtered events */
    .btn-events-map-expand {
        width: 172px;
        padding-left: 8px;
        padding-right: 8px;
        transform: translateY(-18px);
    }
    .btn-events-map-expand:active {
        width: 172px;
        padding-left: 8px;
        padding-right: 8px;
        transform: translateY(-17px);
    }

    .btn-events-map-expand-text {
        display: inline;
    }


    /** Footer **/
    .section-footer {
        padding-left: 95px;
        padding-right: 95px;
        max-width: var(--max-width);
    }
}

@media screen and (min-width: 1440px) {
    /** Common **/
    .section {
        max-width: 1192px;
    }


    /** Sections - Page 2 **/
    /* 01 - Filtered events */
    .events-map-block {
        right: -27px;
    }


    /** Footer **/
    .section-footer {
        padding-left: 195px;
        padding-right: 195px;
        max-width: var(--max-width);
    }
}