:root {
    /* Main colors */
    --primary-color: #238987; /* Primary theme color for buttons and links */
    --secondary-color: #101010; /* Color used for secondary actions*/
    --accent-color: #F38221; /* Accent color used for secondary actions */
    --bg-color: #FEFEFF; /* Background color */

    /* Properties */
    --focus-color: #99D8FF; /* Color for accessibility */
    --disabled-color: #D9DCE4; /* Color for disabled statements */
    --warning-color: #E44343; /* Color for warning statements */
    --success-color: #40B33C; /* Color for success actions */
    --info-color: #3B82F6; /* Color for information */

    /* Typography colors*/
    --text-primary-color: #101010; /* Color for main text */
    --text-secondary-color: #767676; /* Color for secondary text */
    --text-ghost-color: #64748B; /* Color for ghost text */
    
    /* Other colors*/
    --white-color: #FFFFFF; /* Color for text in buttons or badges */
    --gray-color: #E2E2E2; /* Color for elements, strokes */
    --light-blue-color: #F9FBFE; /* Color for card elements */
    --light-green-color: #e8f4f4; /* Color for map elements */

    
    /* Typography*/
    --font-body: "Inter", sans-serif;

    /* Typography sizes*/
    --font-size-title: 48px;
    --font-size-h2: 38px;
    --font-size-h3: 24px;
    --font-size-h4: 22px;
    --font-size-body: 16px;
    --font-size-small: 14px;
    --font-helper-text: 8px;

    /* Other */
    --primary-color-40: #23898766; /* Primary theme color 40% opacit for map */
    --border-radius: 8px; /* Border radius for all elements */
} 

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

/* Privacy policy table */
.privacy-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0 20px;
    table-layout: fixed;
}

.privacy-table th,
.privacy-table td {
    border: 1px solid #1f1f1f;
    padding: 10px 12px;
    text-align: left;
    vertical-align: top;
    color: var(--text-primary-color);
    font-size: var(--font-size-body);
}

.privacy-table th {
    font-weight: 700;
}

html {
    scroll-behavior: smooth;
}

body{
    min-height: 100vh;
    font-family: var(--font-body);
    font-size: 16px;
    background-color: var(--bg-color);
    margin: 0;
    max-width: 100%;
}

main{
    min-height: 100vh;
}

/* Buttons */
/* Shared button base for primary, secondary, small and helper variants. */
.button,
.button--primary,
.button--secondary,
.button--small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    position: relative;
    font-weight: 400;
    border-radius: var(--border-radius);
    font-size: var(--font-size-small);
    overflow: hidden;
    white-space: nowrap;
    border-style: solid;
    vertical-align: middle;
    line-height: 1;
    box-shadow: none;
    appearance: none;
    -webkit-appearance: none;
}

/* Primary and Secondary width, padding and height */
.button,
.button--primary,
.button--secondary {
    min-width: 144px;
    min-height: 42px;
    gap: 8px;
    padding: 10px 16px;
}

/* Small (Helper) width, padding and height */
.button--small,
.button--helper{
    min-width: 90px;
    min-height: 30px;
    padding: 10px 5px;
}


/* Default  */
.button--primary {
    color: var(--white-color);
    background-color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.button--secondary {
    color: var(--primary-color);
    background-color: transparent;
    border: 1px solid var(--primary-color);
    box-shadow: inset 0 0 0 0 var(--primary-color);
    transition: box-shadow 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.button--small,
.button--helper{
    border: 1px solid var(--gray-color);
    background-color: transparent;
    color: var(--secondary-color);
}

.button--helper{
    color: var(--text-ghost-color)
}

/* Hover & Active */
.button--primary:hover,
.button--primary:active{
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--white-color);
    cursor: pointer;
}

.button--secondary:hover,
.button--secondary:active {
    background-color: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: inset 0 0 0 2px var(--primary-color);
    cursor: pointer;
}

.button--small:hover,
.button--helper:hover{
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    cursor: pointer;
}

.button--small:active,
.button--helper:active{
    background-color: var(--primary-color);
    color: var(--white-color);
    cursor: pointer;
}

.button--secondary.is-active,
.button--small.is-active,
.button--helper.is-active{
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white-color);
}

/* Disabled */
.button--primary:disabled,
.button--small:disabled {
    background-color: var(--disabled-color);
    border-color: var(--disabled-color);
    color: var(--white-color);
    cursor: not-allowed;
}

.button--secondary:disabled {
    border: 1px solid var(--disabled-color);
    color: var(--disabled-color);
    cursor: not-allowed;
}

.button--small:disabled,
.button--helper:disabled{
    background-color: var(--disabled-color);
    border-color: var(--disabled-color);
    color: var(--white-color);
    cursor: not-allowed;
}


/* Focus */
.button--primary:focus-visible,
.button--secondary:focus-visible,
.button--small:focus-visible,
.button--helper:focus-visible {
    outline: 3px solid var(--focus-color);
}


/* Loading state for only Primary and Secondary buttons */
/* Type: Primary loading state */
.button.is-loading,
.button[aria-busy="true"] {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--white-color);
    cursor: progress;
    pointer-events: none;
    opacity: 0.9;
}

.button.is-loading {
    color: transparent;
}

.button[aria-busy="true"] {
    color: transparent;
}

.button.is-loading::after,
.button[aria-busy="true"]::after {
    content: "";
    position: absolute;
    inset: 0;
    margin: auto;
    width: 14px;
    height: 14px;
    border: 2px solid var(--white-color);
    border-right-color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    border-radius: 50%;
    animation: button-spinner 0.75s linear infinite;
}

/* Type: Secondary loading state */
.button--secondary.is-loading,
.button--secondary[aria-busy="true"] {
    background-color: var(--white-color);
    border: 1px solid var(--primary-color);
    color: transparent;
    opacity: 1;
}

.button--secondary.is-loading::after,
.button--secondary[aria-busy="true"]::after {
    border: 2px solid var(--light-blue-color);
    border-top-color: var(--primary-color);
    border-right-color: var(--primary-color);
}

@keyframes button-spinner {
    to {
        transform: rotate(360deg);
    }
}


/* Typography */
/* Headings */
.text-title,
h1 {
    font-size: var(--font-size-title);
    color: var(--text-primary-color);
}

h2 {
    font-size: var(--font-size-h2);
    color: var(--text-primary-color);
    margin-bottom: 8px;
}

h3 {
    font-size: var(--font-size-h3);
    color: var(--text-primary-color);
    margin-bottom: 8px;
}

h4 {
    font-size: var(--font-size-h4);
    color: var(--text-primary-color);
}

/* Paragpraphs */
p {
    font-size: var(--font-size-body);
    font-weight: 300;
    line-height: 1.4;
}

.p-strong {
    font-size: var(--font-size-body);
    font-weight: 600;
    line-height: 1.4;
}

.p-small {
    font-size: var(--font-size-small);
    line-height: 1.4;
}

.p-helper {
    font-size: var(--font-helper-text);
    line-height: 1.4;
}

/* Color variants */
.text-primary { color: var(--text-primary-color); }
.text-secondary { color: var(--text-secondary-color); }
.text-ghost { color: var(--text-ghost-color); }
.text-white { color: var(--white-color); }
.text-warning { color: var(--warning-color); }


/* Inputs */
input,
textarea {
    display: block;
    width: 100%;
    padding: 10px 16px;
    font-size: var(--font-size-body);
    font-weight: 300;
    color: var(--text-primary-color);
    background-color: var(--white-color);
    border: 1px solid var(--gray-color);
    border-radius: var(--border-radius);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    appearance: none;
    -webkit-appearance: none;
    font-family: var(--font-body);
    max-width: 380px;
}

input::placeholder,
textarea::placeholder {
    color: var(--text-secondary-color);
}

input:hover,
textarea:hover {
    border-color: var(--primary-color);
}

input:active,
textarea:active {
    border-color: var(--primary-color);
}

input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--focus-color);
}

input:disabled,
textarea:disabled {
    background-color: var(--disabled-color);
    border-color: var(--disabled-color);
    color: var(--white-color);
    cursor: not-allowed;
}

input[type="checkbox"] {
    appearance: none;
    position: relative;
    width: 24px;
    height: 24px;
    border: 1px solid var(--gray-color);
    border-radius: var(--border-radius);
    background-color: var(--white-color);
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input[type="checkbox"]::before {
    content: "";
    position: absolute;
    width: 6px;
    height: 11px;
    border: solid var(--primary-color);
    border-width: 0 2px 2px 0;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg) scale(0);
    transition: transform 0.15s ease;
}

input[type="checkbox"]:hover {
    border-color: var(--primary-color);
}

input[type="checkbox"]:active {
    border-color: var(--primary-color);
}

input[type="checkbox"]:checked::before {
    transform: translate(-50%, -50%) rotate(45deg) scale(1);
}

input[type="checkbox"]:focus-visible{
    outline: 2px solid var(--focus-color);
}

input[type="checkbox"]:checked{
    border-color: var(--primary-color);
}

input[type="checkbox"]:disabled {
    background-color: var(--disabled-color);
    border-color: var(--disabled-color);
    cursor: not-allowed;
}

input[type="checkbox"]:disabled::before {
    border-color: var(--white-color);
}

input[type="radio"] {
    appearance: none;
    position: relative;
    width: 24px;
    height: 24px;
    border: 1px solid var(--gray-color);
    border-radius: var(--border-radius);
    background-color: var(--white-color);
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input[type="radio"]::before {
    content: "";
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: var(--primary-color);
    border-radius: var(--border-radius);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.15s ease;
}

input[type="radio"]:hover {
    border-color: var(--primary-color);
}

input[type="radio"]:active {
    border-color: var(--primary-color);
}

input[type="radio"]:checked::before {
    transform: translate(-50%, -50%) scale(1);
}

input[type="radio"]:focus-visible{
    outline: 2px solid var(--focus-color);
}

input[type="radio"]:checked{
    border-color: var(--primary-color);
}


/* Badge */
.badge{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    position: relative;
    font-weight: 400;
    min-width: 99px;
    min-height: 30px;
    border-radius: var(--border-radius);
    font-size: var(--font-size-small);
    background-color: var(--primary-color);
    border: 1px solid var(--primary-color);
    color: var(--white-color);
    overflow: hidden;
    white-space: nowrap;
    border-style: solid;
    vertical-align: middle;
    line-height: 1;
    box-shadow: none;
    appearance: none;
    border-radius: var(--border-radius);
    -webkit-appearance: none;
}

/* Type: Primary */
.badge--primary--primary{
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.badge--secondary--primary{
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.badge--accent--primary{
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.badge--warning--primary{
    min-width: 50px;
    background-color: var(--warning-color);
    border-color: var(--warning-color);
}

/* Type: Secondary */
.badge--primary--secondary{
    background-color: var(--bg-color);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.badge--secondary--secondary{
    background-color: var(--bg-color);
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

.badge--accent--secondary{
    background-color: var(--bg-color);
    border-color: var(--accent-color);
    color: var(--accent-color);
}



.badge:focus-visible{
    outline: 3px solid var(--focus-color);
}

.button--filters:focus-visible{
    outline: 3px solid var(--focus-color);
}


/* Accordion */
.accordion{
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    background-color: var(--white-color);
    padding: 32px;
    border-radius: var(--border-radius);
    border: 1px solid var(--gray-color);
    border-style: solid;
    border-color: var(--gray-color);
    margin-bottom: 24px;
}

.accordion:focus-within{
    outline: 3px solid var(--focus-color);
}


.accordion__header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0px 20px;
    font-size: var(--font-size-body);
    font-weight: 600;
    color: var(--text-primary-color);
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    line-height: 1.4;
    transition: background-color 0.2s ease;
}

.accordion__header:hover {
    background-color: var(--bg-color);
}

.accordion__header i {
    font-size: 16px;
    flex-shrink: 0;
    color: var(--primary-color);
    transition: transform 0.2s ease;
}

.accordion__header[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.accordion__title {
    margin: 0;
    font-size: var(--font-size-body);
    font-weight: 600;
}

.accordion__content {
    padding: 0 20px 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.accordion__content[hidden] {
    display: none;
}

.accordion__text {
    margin: 0;
    font-size: var(--font-size-body);
    line-height: 1.4;
}

.accordion-container{
    display: flex;
    flex-direction: row;
}

/* Modal */
.modal[hidden] {
    display: none;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: grid;
    place-items: center;
    padding: 24px 16px;
}

.modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(16, 16, 16, 0.32);
}

.modal__content {
    position: relative;
    z-index: 1;
    width: 413px;
    min-height: 100px;
    overflow: visible;
    padding: 32px;
    gap: 0;
    border: 1px solid var(--gray-color);
    border-radius: 10px;
    box-shadow: 0 24px 60px rgba(16, 16, 16, 0.12);
    justify-content: center;
    background-color: var(--white-color);
}

.modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 18px;
    border-radius: 999px;
}

.modal__close:hover {
    background: var(--light-green-color);
    color: var(--text-secondary-color);
}

.modal__form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}


.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}


.form-helper {
    font-size: 14px;
    color: #7c8aa0;
    line-height: 1.35;
}

.modal__submit {
    min-width: 112px;
    margin-top: 2px;
    border-radius: 8px;
    align-self: flex-start;
}

.notifications-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.notifications-tabs__divider {
    flex-basis: 100%;
    height: 1px;
    background-color: var(--gray-color);
    margin-top: 4px;
}

.dev-notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--gray-color);
    border-radius: var(--border-radius);
    background-color: var(--light-blue-color);
}

.dev-notice i {
    margin-top: 2px;
    color: var(--primary-color);
}

.dev-notice p {
    margin: 0;
}

#notificationsModal .modal__content {
    max-height: 80vh;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-gutter: stable;
}

@media (max-width: 480px) {
    .modal {
        padding: 12px;
    }

    .modal__content {
        width: 100%;
        padding: 24px 20px;
    }

    .modal h4,
    .modal__subtitle {
        max-width: none;
    }
}

/* Cards */
.card,
.card-community,
.card-partner,
.card-notification{
    display: flex;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-self: stretch;
    gap: 10px;
    background-color: var(--white-color);
    padding: 18px;
    border-radius: var(--border-radius);
    border: 1px solid var(--gray-color);
}

.card-community{
    display: grid;
    background-color: var(--light-blue-color);
    gap: 24px;
    width: 100%;
    padding: 32px;
    grid-template-columns: 1fr 195px;
    gap: 28px;
}

.card-partner{
    min-width: 239px;
    min-height: 294px;
    gap: 12px;
    background-color: var(--light-blue-color);
}

.card-notification{
    border:0;
    border-bottom: 1px solid var(--gray-color);
    border-radius: 0;
    padding: 12px;
    gap:8px;
}

.card:focus-visible,
.card-community:focus-visible,
.card:focus-within,
.card-community:focus-within,
.card-partner:focus-within{
    outline: 2px solid var(--focus-color);
}


/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown details {
    position: relative;
}

.dropdown-menu {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    list-style: none;
}

.dropdown-menu::-webkit-details-marker {
    display: none;
}

.dropdown-content {
    display: none;
    flex-direction: column;
    gap: 8px;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    z-index: 20;
    background: var(--white-color);
    border: 1px solid var(--gray-color);
    border-radius: var(--border-radius);
    min-width: 220px;
    box-shadow: 0 4px 12px var(--gray-color);
    padding: 12px;
    list-style: none;
}

.dropdown-content a {
    display: block;
    text-decoration: none;
    color: var(--text-primary-color);
    padding: 8px;
    line-height: 1.4;
}

.dropdown-content li:not(:last-child) {
    border-bottom: 1px solid var(--gray-color);
}

.dropdown details[open] .dropdown-content {
    display: flex;
}

.dropdown-menu:focus-visible,
.dropdown-content:focus-within {
    outline: 3px solid var(--focus-color);
}


/* Filters */
.button--filters{
    min-width: 100px;
    color: var(--primary-color);
    background-color: transparent;
    border: 1px solid var(--gray-color);
    cursor: pointer;
}

.button--filters:hover{
    color: var(--primary-color);
    background-color: transparent;
    border: 1px solid var(--primary-color);
}

.button--filters:active{
    color: var(--white-color);
    background-color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.button--filters:active i{
    color: var(--white-color);
}

.button--filters:focus-visible{
    outline: 3px solid var(--focus-color);
}

/* Navbar */
.site-header {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--white-color);
}

nav{
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--white-color);
    margin: 0;
    width: 100%;
    min-height: 80px;
    padding: 12px 20px;
    gap: 20px;
    box-sizing: border-box;
    border-bottom: 1px solid var(--gray-color);
}

/* Avatar */
.avatar{
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    max-width: 40px;
    max-height: 40px;
    aspect-ratio: 1 / 1;
    display: block;
    flex-shrink: 0;
    border-radius: 50%;
    object-fit: cover;
}

/* Other elements */
i{
    color: var(--primary-color);
}

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

a:hover{
    color: var(--primary-color);
}

section{
    width: 100%;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
    margin-bottom: 90px;
}

#avaleht,
#kuidas-liituda,
#meist,
#kkk {
    scroll-margin-top: 110px;
}

/* Focus statements for only using keyboard */
body:not(.using-keyboard) input:focus-visible,
body:not(.using-keyboard) textarea:focus-visible,
body:not(.using-keyboard) .badge:focus-visible,
body:not(.using-keyboard) .button--filters:focus-visible,
body:not(.using-keyboard) .card:focus-visible,
body:not(.using-keyboard) .card-community:focus-visible,
body:not(.using-keyboard) .accordion:focus-within,
body:not(.using-keyboard) .card:focus-within,
body:not(.using-keyboard) .card-community:focus-within,
body:not(.using-keyboard) .card-partner:focus-within,
body:not(.using-keyboard) .dropdown-menu:focus-within,
body:not(.using-keyboard) .dropdown-content:focus-within {
    outline: none;
}

/* Page layout */
.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-primary-color);
    font-weight: 600;
}

.site-brand__logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.site-nav__links {
    display: flex;
    align-items: center;
    gap: 34px;
    list-style: none;
}

.site-nav__link {
    color: var(--text-primary-color);
    text-decoration: none;
    font-size: 28px;
    line-height: 1;
    font-size: var(--font-size-body);
}

.site-nav__link i {
    margin-left: 6px;
    font-size: 12px;
    color: var(--text-primary-color);
}

.site-nav__actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.notifications-trigger {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: var(--text-primary-color);
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.notifications-trigger:hover {
    background-color: var(--light-green-color);
    color: var(--primary-color);
}

.notifications-trigger:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.notifications-trigger:active {
    transform: scale(0.96);
}

.notifications-trigger.has-unread::after {
    content: "";
    position: absolute;
    top: 6px;
    right: 6px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--warning-color);
    border: 2px solid var(--white-color);
}

.landing-main {
    min-height: calc(100vh - 81px);
    display: block;
    padding: 48px 20px;
}

.hero {
    width: 100%;
    max-width: 1280px;
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 44px;
    align-items: start;
}

.hero__content {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding-top: 56px;
}

.hero__tags,
.hero__chips {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero__title {
    max-width: 620px;
    line-height: 1.12;
    font-weight: 700;
}

.hero__title-accent {
    color: var(--accent-color);
    font-style: italic;
}

.hero-search {
    display: flex;
    align-items: stretch;
    gap: 8px;
    width: 100%;
    max-width: 620px;
}

.hero-search__input-wrap {
    position: relative;
    flex: 1;
}

.hero-search__input-wrap i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.hero-search__input-wrap input {
    max-width: 100%;
    height: 100%;
    min-height: 42px;
    padding-left: 44px;
}

.hero-search__submit {
    min-width: 144px;
}

.hero-map {
    border: 1px solid var(--gray-color);
    padding: 20px;
    min-height: 520px;
    background-color: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    border-radius: var(--border-radius);
}

.hero-map__title {
    margin-top: 2px;
    margin-bottom: 18px;
}

.hero-map__image {
    width: 100%;
    max-width: 560px;
    height: 100%;
    max-height: 430px;
    display: block;
}

.hero-map__image path {
    fill: var(--light-green-color);
    stroke: var(--primary-color-40);
    stroke-width: 0.8;
    transition: fill 0.2s ease, stroke 0.2s ease, stroke-width 0.2s ease;
    cursor: pointer;
}

.hero-map__image path:hover {
    fill: var(--light-green-color);
    stroke:var(--primary-color);
    stroke-width: 1.2;
}

.hero-map__image text {
    user-select: none;
    fill: var(--secondary-color);
}

.about-section__title {
    margin-bottom: 12px;
}

.about-section__subtitle{
    margin-bottom: 24px;
}

.about-section__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.about-card {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background-color: #fefeff;
    padding: 18px;
    border-radius: 8px;
    border-width: 1px;
    border-style: solid;
    border-color: #e2e2e2;
}

.about-card__icon {
    color: #667892;
    font-size: 44px;
    line-height: 1;
    margin-bottom: 2px;
}

.about-card__number {
    color: var(--text-ghost-color);
    font-size: 22px;
    line-height: 1.2;
}

.about-card__text {
    max-width: 290px;
    margin-bottom: 18px;
}

.about-card__action {
    margin-top: auto;
    align-self: flex-end;
}

.meist-section {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 56px;
    align-items: center;
    margin-top: 72px;
}

.meist-section__content {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 540px;
}

.meist-section__actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.meist-pill {
    min-width: 100px;
    min-height: 30px;
    padding: 6px 18px;
    border-radius: 8px;
    font-size: var(--font-size-small);
    line-height: 1;
    font-weight: 400;
    border: 1px solid transparent;
    background: transparent;
}

.meist-pill--primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white-color);
}

.meist-pill--outline {
    background-color: transparent;
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.meist-section__text {
    max-width: 500px;
}

.meist-section__media {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.meist-section__image {
    width: 100%;
    min-width: 555px;
    height: auto;
    max-height: 370px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.meist-slider {
    display: flex;
    align-items: center;
    gap: 14px;
}

.meist-slider__arrow {
    width: 36px;
    height: 36px;
    border-radius: var(--border-radius);
    border: 0;
    background-color: var(--primary-color);
    color: var(--white-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.meist-slider__arrow:last-child {
    background-color: var(--primary-color);
}

.meist-slider__dots {
    display: flex;
    align-items: center;
    gap: 12px;
}

.meist-slider__dot {
    width: 52px;
    height: 8px;
    border-radius: 999px;
    background-color: var(--gray-color);
    border: 1px solid var(--gray-color);
    display: block;
}

.meist-slider__dot--active,
.meest-slider__dot--active {
    background-color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.kkk-container{
    display: flex; 
    justify-content: space-between; 
    align-items: flex-start; 
    gap: 24px; 
    margin-bottom: 24px;
}



@media (max-width: 1120px) {
    nav {
        flex-wrap: wrap;
        justify-content: space-between;
        padding-bottom: 18px;
    }

    .site-nav__links {
        order: 3;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        row-gap: 10px;
    }

    .landing-main {
        min-height: auto;
    }

    .hero {
        grid-template-columns: 1fr;
    }

    .hero__content {
        padding-top: 20px;
    }

    .hero-map {
        min-height: auto;
    }

    .about-section__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .kkk-container {
        flex-wrap: wrap;
    }

    .kkk-container .button {
        margin-left: 0 !important;
    }

    .meist-section {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-top: 56px;
    }
}

@media (max-width: 720px) {
    h1 {
        font-size: 34px;
    }

    h2 {
        font-size: 30px;
    }

    nav {
        justify-content: center;
    }

    .site-nav__links {
        justify-content: center;
        gap: 14px;
    }

    .site-nav__actions {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-search {
        flex-direction: column;
    }

    .hero-search__submit {
        width: 100%;
        max-width: 100%;
    }

    .about-section__grid {
        grid-template-columns: 1fr;
    }

    .about-card__action {
        width: 100%;
        align-self: stretch;
    }

    .meist-section__content {
        max-width: 100%;
    }

    .meist-section__media {
        width: 100%;
    }

    .meist-section__image {
        min-width: 0;
        max-height: none;
    }

    .meist-slider {
        width: 100%;
        flex-wrap: wrap;
        justify-content: center;
    }

    .meist-slider__dots {
        justify-content: center;
        flex-wrap: wrap;
        row-gap: 8px;
    }

    .meist-slider__dot {
        width: 30px;
    }

    .community-page__tabs {
        width: 100%;
    }

    .community-page__tabs .button--secondary {
        min-width: 0;
        width: auto;
        flex: 1 1 calc(50% - 10px);
    }

    .community-page__tabs .button--secondary a {
        display: block;
        width: 100%;
        text-align: center;
        white-space: normal;
    }
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--gray-color);
    padding: 56px 20px 24px;
}

.site-footer__content {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(320px, 1.1fr) minmax(0, 1fr);
    gap: 56px;
}

.site-footer__brand-column {
    display: flex;
    flex-direction: column;
    gap: 26px;
}

.site-footer__brand {
    gap: 10px;
    width: fit-content;
}

.site-footer__brand-name {
    font-size: 38px;
    line-height: 1;
    font-weight: 700;
    color: var(--text-primary-color);
}

.site-footer__description {
    max-width: 470px;
}

.site-footer__heading {
    margin-bottom: 18px;
}

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

.site-footer__contact .site-footer__heading {
    margin-bottom: 4px;
}

.site-footer__contact-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary-color);
}

.site-footer__contact-link span:last-child {
    font-size: 28px;
    font-weight: 400;
    line-height: 1.3;
}

.site-footer__icon-wrap {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--gray-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.site-footer__icon-wrap i {
    font-size: 16px;
    /* color: var(--text-primary-color); */
}

.site-footer__social-list {
    display: flex;
    align-items: center;
    gap: 14px;
    list-style: none;
}

.site-footer__social-link {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--gray-color);
    text-decoration: none;
}

.site-footer__social-link i {
    font-size: 15px;
    /* color: var(--text-primary-color); */
}

.site-footer__links-columns {
    display: grid;
    grid-template-columns: repeat(3, minmax(180px, 1fr));
    gap: 54px;
    align-items: start;
    min-height: 100%;
    background-color: transparent;
    border: 0;
    padding: 0;
}

.site-footer__links-group .site-footer__heading {
    white-space: nowrap;
}

.site-footer__links-group ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.site-footer__links-group a {
    text-decoration: none;
    font-size: var(--font-body);
    font-weight: 400;
    line-height: 1.4;
    color: var(--text-primary-color);
}

.site-footer__links-group a:hover {
    color: var(--primary-color);
}

.site-footer__copyright {
    text-align: center;
    margin-top: 42px;
    font-size: var(--font-body);
    color: var(--text-primary-color);
}

@media (max-width: 1120px) {
    .site-footer__content {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .site-footer__links-columns {
        grid-template-columns: repeat(2, minmax(180px, 1fr));
    }
}

@media (max-width: 720px) {
    .site-footer {
        padding-top: 40px;
    }

    .site-footer__heading,
    .site-footer__brand-name {
        font-size: 30px;
    }

    .site-footer__contact-link span:last-child,
    .site-footer__copyright {
        font-size: 20px;
    }

    .site-footer__links-group a {
        font-size: 16px;
    }

    .site-footer__links-columns {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* Privacy page lists */
.privacy-main ul {
    list-style: disc;
    list-style-position: outside;
    padding-left: 24px;
    margin: 8px 0 16px;
}

.privacy-main li {
    margin-bottom: 6px;
}

/* Privacy page readability */
.privacy-page {
    background-color: #f6f8fb;
    color: var(--text-primary-color);
}

.privacy-header {
    max-width: 900px;
    margin: 40px auto 0;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.privacy-header h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.15;
}

.privacy-main {
    max-width: 900px;
    margin: 20px auto 56px;
    padding: 28px 28px 36px;
    background: var(--white-color);
    border: 1px solid var(--gray-color);
    border-radius: 12px;
}

.privacy-main h4 {
    margin: 30px 0 12px;
    font-size: 24px;
    line-height: 1.25;
}

.privacy-main p {
    margin-bottom: 12px;
    line-height: 1.7;
}

.privacy-main .privacy-note {
    background: var(--light-green-color);
    border-left: 4px solid var(--accent-color);
    border-radius: 8px;
    padding: 12px 14px;
}

.privacy-main .p-strong {
    display: block;
    line-height: 1.6;
}

.privacy-main ul {
    line-height: 1.7;
}

@media (max-width: 720px) {
    .privacy-header {
        margin-top: 20px;
        flex-direction: column;
        align-items: flex-start;
    }

    .privacy-main {
        margin-top: 14px;
        padding: 20px 16px 28px;
    }

    .privacy-main h4 {
        font-size: 21px;
    }
}

.dropdown-content--right {
    left: auto;
    right: 0;
}

/* Keep card action menus inside the viewport edge. */
.card-community .dropdown-content {
    left: auto;
    right: 0;
}


.community-list {
    display: grid;
    gap: 22px;
}

.community-card__left {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 24px;
    align-items: start;
}

.community-card__image {
    width: 100%;
    height: 184px;
    object-fit: cover;
    border-radius: 14px;
    display: block;
}

.community-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 12px;
}


/* Profile communities page responsiveness */
.profile-communities {
    padding: 24px 20px 64px;
}

@media (max-width: 1024px) {
    .profile-communities {
        padding: 20px 16px 56px;
    }

    .profile-communities .about-section {
        margin-bottom: 26px !important;
    }

    .profile-communities .about-section h2 {
        margin-top: 36px !important;
    }

    .card-community {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 24px;
    }

    .community-card__left {
        grid-template-columns: 200px 1fr;
        gap: 18px;
    }

    .card-community aside {
        justify-self: end;
    }
}

@media (max-width: 760px) {
    .profile-communities {
        padding: 14px 12px 44px;
    }

    .profile-communities .about-section h2 {
        margin-top: 20px !important;
        margin-bottom: 14px !important;
    }

    .profile-communities .about-section h3 {
        margin-bottom: 8px;
    }

    .hero-search {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .button--filters,
    .hero-search__submit {
        width: 100%;
        max-width: 100%;
    }

    .hero-search__input-wrap {
        width: 100%;
    }

    .card-community {
        padding: 16px;
        gap: 16px;
    }

    .community-card__left {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .community-card__image {
        width: 100%;
        max-width: 100%;
        height: 180px;
    }

    .community-card__tags {
        gap: 8px;
        margin-bottom: 10px;
    }

    .card-community .dropdown-content {
        min-width: 0;
        width: min(220px, calc(100vw - 24px));
    }

    .card-community aside .site-nav__actions {
        width: 100%;
        justify-content: flex-end;
    }
}

@media (max-width: 480px) {
    .profile-communities {
        padding: 10px 10px 34px;
    }

    .community-card__image {
        height: 160px;
    }

    .card-community p {
        font-size: 15px;
        line-height: 1.55;
    }
}


.image-community{
    display: block; 
    min-width: 100%; 
    max-height: 430px; 
    object-fit: cover; 
    border-radius: var(--border-radius);
}

.contact-card {
    background: var(--light-green-color);
    border: 1px solid var(--gray-color);
    box-shadow: inset 0 0 0 1px #eff6ff;
    border-radius: 8px;
    padding: 10px;
}

.simple-list {
    margin: 0;
    padding-left: 18px;
    color: var(--primary-color);
}

.simple-list li {
    margin-bottom: 6px;
}

.contact-action {
    display: inline-block;
    margin-top: 8px;
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid var(--primary-color);
    background: var(--primary-color);
    color: var(--white-color);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
}

.contact-action:hover {
    background:var(--secondary-color);;
    border-color: var(--secondary-color);
    color: var(--white-color);
}

.quick-list {
    margin: 0;
    padding-left: 18px;
    color: var(--text-primary-color);
    font-size: 16px;
    line-height: 1.6;
}

.section-title {
    margin: 0 0 8px;
    font-size: var(--font-body);
    color: var(--brand-blue);
    padding-left: 8px;
    border-left: 3px solid var(--accent-color);
}

.section-box {
    background: var(--light-blue-color);
    border: 1px solid var(--gray-color);
    border-radius: var(--border-radius);
    padding: 16px;
    box-shadow: inset 0 0 0 1px rgba(30, 77, 130, 0.02);
    margin-bottom: 20px;
}

.community-page__section {
    margin-bottom: 34px;
}

.community-page__title {
    margin-top: 64px;
    margin-bottom: 16px;
}

.community-page__breadcrumbs {
    margin-bottom: 18px;
}

.community-page__breadcrumbs a {
    color: var(--primary-color);
}

.community-page__tabs {
    margin-bottom: 12px;
}

.community-page__tabs-divider {
    margin-bottom: 12px;
}

.community-page #community-content {
    border: 1px solid var(--gray-color);
    border-radius: var(--border-radius);
    padding: 16px;
    background-color: var(--white-color);
}

.card-partners-list{
    display: grid;
    align-items: stretch;
    width: 100%;
    max-width: 1280px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.card-partners-list .card-partner {
    min-width: 0;
    width: 100%;
}

.card-partners-list .card-partner img {
    width: 100%;
    height: 170px;
    object-fit: cover;
}

.pagination{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    gap: 6px;
}

.page-number-active{
    width: 36px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 5px 10px;
    border-radius: var(--border-radius);
    color: var(--white-color);
    cursor: pointer;
}

.page-number-default{
    width: 36px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--white-color);
    padding: 5px 10px;
    border-radius: var(--border-radius);
    border: 1px solid var(--gray-color);
    color: var(--text-ghost-color);
    cursor: pointer;
}

.page-number-default:hover{
    border: 1px solid var(--primary-color);
}

.page-number-default:active{
    background-color: var(--primary-color);
    color: var(--white-color);
}

@media (max-width: 900px) {
    .card-partners-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .card-partners-list {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .card-partners-list .card-partner {
        min-height: 0;
    }

    .card-partners-list .card-partner img {
        height: 180px;
    }
}


