@import url('https://fonts.googleapis.com/css2?family=Geologica:wght,CRSV@100..900,0&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');
:root {
    --bg: #F7F8F4;
    --white: #FEFFFC;
    --dark-black: #252730;
    --dark-gray: #5D6462;
    --light-gray: #9EA192;
    --green: #4C7D41;
    --light-green: #DCE9BD;
    --yellow: #FFD435;
    --light-yellow: #FCF4C4;
    --red: #FF645B;
    --red-light: #ff645b1a;
    --shadow-green: #A6BB7369;
    --modal-overlay: #00000033;
    
    --font-geologica: "Geologica", sans-serif;
    --font-inter: "Inter", sans-serif;
    
    --h1-font-family: var(--font-geologica);
    --h1-font-weight: 500;
    --h1-font-size: 60px;
    --h1-line-height: 100%;
    
    --h2-font-family: var(--font-geologica);
    --h2-font-weight: 500;
    --h2-font-size: 40px;
    --h2-line-height: 100%;
    
    --h3-font-family: var(--font-geologica);
    --h3-font-weight: 500;
    --h3-font-size: 32px;
    --h3-line-height: 100%;
    
    --main-text1-font-family: var(--font-inter);
    --main-text1-font-weight: 400;
    --main-text1-font-size: 25px;
    --main-text1-line-height: 120%;
    
    --main-text-bold-font-family: var(--font-inter);
    --main-text-bold-font-weight: 600;
    --main-text-bold-font-size: 25px;
    --main-text-bold-line-height: 120%;
    
    --main-text2-font-family: var(--font-inter);
    --main-text2-font-weight: 400;
    --main-text2-font-size: 16px;
    --main-text2-line-height: 120%;
    
    --button-font-family: var(--font-inter);
    --button-font-weight: 400;
    --button-font-size: 20px;
    --button-line-height: 120%;
    
    --button-2-font-family: var(--font-inter);
    --button-2-font-weight: 400;
    --button-2-font-size: 12px;
    --button-2-line-height: 120%;

    --lg: 1340px;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

h1, h2, h3 {
    font-family: var(--h1-font-family);
    font-weight: var(--h1-font-weight);
    line-height: var(--h1-line-height);
}

h1 {
    font-size: var(--h1-font-size);
}

h2 {
    font-family: var(--h2-font-family);
    font-weight: var(--h2-font-weight);
    font-size: var(--h2-font-size);
    line-height: var(--h2-line-height);
}

h3 {
    font-family: var(--h3-font-family);
    font-weight: var(--h3-font-weight);
    font-size: var(--h3-font-size);
    line-height: var(--h3-line-height);
}

a {
    all: unset;
    cursor: pointer;
}

span {
    all: unset;
}

ul, ol {
    padding-left: 20px;
}

button {
    all: unset;
    cursor: pointer;
}

html, body {
    height: 100%;
    background-color: var(--bg);
    color: var(--dark-black);
}

body {
    font-family: var(--main-text1-font-family);
    font-weight: var(--main-text1-font-weight);
    font-size: var(--main-text1-font-size);
    line-height: var(--main-text1-line-height);
}

.wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.content {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

footer {
    flex: 0 0 auto;
}

.main-text1 {
    font-family: var(--main-text1-font-family);
    font-weight: var(--main-text1-font-weight);
    font-size: var(--main-text1-font-size);
    line-height: var(--main-text1-line-height);
    color: var(--dark-gray);
}

.main-text-bold {
    font-family: var(--main-text-bold-font-family);
    font-weight: var(--main-text-bold-font-weight);
    font-size: var(--main-text-bold-font-size);
    line-height: var(--main-text-bold-line-height);
}

.main-text2 {
    font-family: var(--main-text2-font-family);
    font-weight: var(--main-text2-font-weight);
    font-size: var(--main-text2-font-size);
    line-height: var(--main-text2-line-height);
}

.button-text {
    font-family: var(--button-font-family);
    font-weight: var(--button-font-weight);
    font-size: var(--button-font-size);
    line-height: var(--button-line-height);
}

.button-text-2 {
    font-family: var(--button-2-font-family);
    font-weight: var(--button-2-font-weight);
    font-size: var(--button-2-font-size);
    line-height: var(--button-2-line-height);
}

.icon-green img {
    filter: brightness(0) saturate(100%) invert(29%) sepia(28%) saturate(1234%) hue-rotate(67deg) brightness(95%) contrast(87%);
}

.icon-white img {
    filter: brightness(0) saturate(100%) invert(100%);
}

.icon-dark img {
    filter: brightness(0) saturate(100%);
}

.text-light-gray {
    color: var(--light-gray);
}

.text-dark-gray {
    color: var(--dark-gray);
}

.text-green {
    color: var(--green);
}

.text-underline {
    text-decoration: underline;
}
.btn {
    border: 1px solid;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 32px;
    transition: 0.5s;
    box-sizing: border-box;
}

.tag {
    border: 1px solid;
    border-radius: 12px;
    padding: 8px 20px;
    transition: 0.5s;
    cursor: pointer;
}

.secondary:hover {
    color: var(--white);
    background-color: var(--green);
}

.primary:hover {
    color: var(--green);
    background-color: transparent;    
}

.secondary {
    color: var(--green);
    background-color: transparent;    
}

.primary {
    color: var(--white);
    background-color: var(--green);
}
header {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 34px 0 40px;
    flex: 0 0 auto;
}

.header-container {
    max-width: var(--lg);
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-container .header-logo {
    height: 56px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.header-container .header-logo img {
    height: 100%;
}

.header-container .header-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 56.5px;
    color: var(--dark-gray)
}

.header-container .header-nav .header-link {
    cursor: pointer;
    transition: 0.5s;
}

.header-container .header-nav .header-link.activate, .header-container .header-nav .header-link:hover {
    color: var(--green);
}

.header-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    align-items: center;
    justify-content: center;
}

.header-menu-toggle img {
    width: 32px;
    height: 32px;
    display: block;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--white);
    z-index: 10000;
    overflow-y: auto;
    padding: 20px;
    flex-direction: column;
    gap: 24px;
}

.mobile-menu.open {
    display: flex;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--light-gray);
}

.mobile-menu-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-close img {
    width: 32px;
    height: 32px;
    display: block;
    transform: rotate(270deg);
}

.mobile-menu-nav {
    display: flex;
    flex-direction: column;
    gap: 20px;
    color: var(--dark-gray);
}

.mobile-menu-nav .header-link {
    padding: 16px 0;
    border-bottom: 1px solid var(--bg);
    font-size: 20px;
    cursor: pointer;
    transition: 0.3s;
}

.mobile-menu-nav .header-link.activate,
.mobile-menu-nav .header-link:hover {
    color: var(--green);
}

.mobile-menu-auth {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid var(--light-gray);
}

.mobile-menu-auth .btn {
    width: 100%;
    justify-content: center;
}
main {
    width: 100%;
    display: flex;
    justify-content: center;
    flex: 1 0 auto;
}

.main-container {
    max-width: var(--lg);
    width: 100%;
    display: flex;
    flex: 1;
}
.footer {
    display: flex;
    width: 100%;
    padding: 20px 0 34px;
    justify-content: center;
    align-items: center;
}

.footer-container {
    max-width: var(--lg);
    width: 100%;
    border-radius: 32px;
    background-color: var(--white);
    padding: 24px 48px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 20px;
}

.footer-container .footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.footer-container .footer-top .footer-logo {
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-container .footer-top .footer-logo {
    height: 57px;
}

.footer-container .footer-top .footer-logo img {
    height: 100%;
}

.footer-container .footer-top .footer-contacts {
    display: flex;
    justify-content: center;
    gap: 44px;
    color: var(--dark-gray);
}

.footer-container .footer-top .footer-contacts .footer-tel-with-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    justify-content: center;
}

.footer-container .footer-bottom {
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding-top: 16px;
    align-items: center;
    border-top: 3px solid var(--bg);
}

.footer-container .footer-bottom .btn {
    padding: 8px 82.5px;
}

.footer-container .footer-bottom .footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    color: var(--light-gray);
}
.events-dropdown {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 160px;
    padding: 12px;
    border: 1px solid var(--light-gray);
    border-radius: 12px;
    background-color: transparent;
    color: var(--dark-gray);
    cursor: pointer;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.events-dropdown:hover,
.filter-dropdown.open .events-dropdown {
    border-color: var(--green);
    color: var(--green);
}

.events-dropdown-text {
    flex: 1;
    text-align: left;
}

.events-dropdown-arrow {
    transition: transform 0.2s;
}

.filter-dropdown.open .events-dropdown-arrow-green {
    display: block;
}

.filter-dropdown .events-dropdown-arrow-green {
    display: none;
}

.filter-dropdown.open .events-dropdown-arrow {
    display: none;
}


.events-dropdown-menu {
    position: absolute;
    top: calc(100% + 11px);
    left: 0;
    right: 0;
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: 0 9px 24.3px 0px #48523026;
    overflow: hidden;
    display: none;
    z-index: 100;
    width: 100%;
    text-align: center;
    padding: 4px;
    flex-direction: column;
    gap: 4px;
}

.filter-dropdown.open .events-dropdown-menu {
    display: flex;
    overflow: auto;
    max-height: 400px;
}

.small-dropdown .filter-dropdown.open .events-dropdown-menu {
    max-height: 180px;
}

.events-dropdown-item {
    padding: 8px 12px;
    border-radius: 12px;
    cursor: pointer;
    transition: background-color 0.2s;
    color: var(--dark-gray);
}

.events-dropdown-item:hover {
    background-color: var(--bg);
}

.events-dropdown-item.active {
    background-color: var(--light-yellow);
    color: var(--dark-black);
}

.alert {
    position: relative;
    padding: 12px 20px;
    margin: 10px auto 16px auto;
    border: 1px solid transparent;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    max-width: var(--lg);
    width: 100%;
}
.alert-error {
    color: var(--red);
    background-color: var(--red-light);
    border-color: var(--red);
}
.alert-message {
    color: var(--green);
    background-color: var(--green-light);
    border-color: var(--green);
}
.alert-close {
    background: none;
    border: none;
    font-size: 24px;
    line-height: 1;
    color: var(--dark-black);
    cursor: pointer;
    padding: 0 5px;
    opacity: 0.6;
}
.alert-close:hover {
    opacity: 1;
}
#scrollToTopBtn {
    position: fixed;
    bottom: 20px;
    right: 30px;
    z-index: 99;
    border: none;
    outline: none;
    color: var(--green);
    background-color: transparent;
    cursor: pointer;
    padding: 15px;
    border-radius: 50px;
    font-size: 18px;
    width: 25px;
    height: 40px;
    display: none;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s, background-color 0.3s;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}
#scrollToTopBtn:hover {
    color: var(--white);
    background-color: var(--green);
}

@media (max-width: 1340px) {
    .header-container,
    .main-container,
    .footer-container {
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media (max-width: 1240px) {
    header {
        padding: 24px 0 30px;
    }

    .header-container .header-nav {
        gap: 20px;
        flex-wrap: wrap;
    }

    .header-container .header-nav .header-link {
        font-size: 18px;
    }

    .footer-container {
        padding: 20px 24px;
    }

    .footer-container .footer-top {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }

    .footer-container .footer-top .footer-contacts {
        flex-direction: column;
        gap: 16px;
        width: 100%;
    }

    .footer-container .footer-bottom {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }

    .footer-container .footer-bottom .btn {
        width: 100%;
        max-width: none;
        padding: 12px 24px;
    }

    .footer-container .footer-bottom .footer-links {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
        width: 100%;
    }
}

@media (max-width: 900px) {
    header {
        padding: 20px 0 24px;
    }

    .header-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 16px;
    }

    .header-container .header-logo {
        height: 48px;
    }

    .header-menu-toggle {
        display: flex;
    }

    .header-container .header-nav {
        display: none;
    }

    .header-container .header-nav.registration-header-nav {
        display: flex;
    }

    .main-container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .footer-container {
        padding: 16px 20px;
        border-radius: 24px;
    }

    .footer-container .footer-top .footer-logo {
        height: 48px;
    }

    .events-dropdown {
        width: 100%;
    }
}

@media (max-width: 480px) {
    header {
        padding: 16px 0 20px;
    }

    .header-container .header-logo {
        height: 40px;
    }

    .header-container .header-nav .header-link {
        font-size: 14px;
    }

    .main-container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .footer-container {
        padding: 12px 16px;
        border-radius: 20px;
        gap: 16px;
    }

    .footer-container .footer-top .footer-logo {
        height: 40px;
    }

    .footer-container .footer-bottom .footer-links {
        font-size: 14px;
    }

    h1 {
        font-size: 32px;
    }

    h2 {
        font-size: 28px;
    }

    h3 {
        font-size: 24px;
    }

    .main-text1 {
        font-size: 18px;
    }

    .button-text {
        font-size: 16px;
    }

    img {
        max-width: 100%;
        height: auto;
    }

    .btn {
        min-height: 44px;
        padding: 12px 20px;
    }
}

.menu-dropdown-container {
    position: relative;
    display: inline-block;
}
.menu-dropdown-container a, a.header-link.small-menu{
    font-size: 18px;
}
.menu-dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    z-index: 1;
    border-radius: 4px;
    padding: 8px 0;
}
.menu-dropdown-container:hover .menu-dropdown-content {
    display: block;
}
.menu-dropdown-content .dropdown-link {
    display: block;
    padding: 10px 16px;
    text-decoration: none;
    color: #333;
    white-space: nowrap;
}