/* Базовые параметры */
body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    background: #FFFFFF;
    color: #012021;
}

/* Шапка */
.header {
    width: 100%;
    height: 3.125rem;
    display: flex;
    justify-content: center;
    padding: 0 1.875rem;
    box-sizing: border-box;
}

.header-container {
    width: 100%;
    display: flex;
}

.logo-group {
    display: flex;
    align-items: center;
    gap: 20px;
}

.menu-icon {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.menu-icon-bar {
    margin-top: 2px;
    width: 30px;
    height: 3px;
    background: #012021;
}

.logo {
    width: 65px;
    height: 42px;
}

.right-section {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-left: auto;
}

.catalog-button {
    background: #0E6466;
    border-radius: 15px;
    padding: 8px 20px;
    color: #FFFFFF;
    font-family: 'Inter';
    font-weight: 400;
    font-size: 16px;
    line-height: 120%;
    letter-spacing: 0.04em;
    cursor: pointer;
    border: none;
}

.user-controls {
    display: flex;
    gap: 16px;
}

.login-button {
    background: #E7F0F2;
    border-radius: 15px;
    padding: 8px 20px;
    font-family: 'Inter';
    font-weight: 500;
    font-size: 14px;
    line-height: 130%;
    color: #0E6466;
    border: none;
    cursor: pointer;
}

.register-button {
    background: #0E6466;
    border-radius: 15px;
    padding: 8px 20px;
    font-family: 'Inter';
    font-weight: 500;
    font-size: 14px;
    line-height: 130%;
    color: #FFFFFF;
    border: none;
    cursor: pointer;
}

/* Тело */

/* Заголовок и картинка */
.hero-section {
    width: 100%;
    height: 300px;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('../static/main/main-picture.svg');
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    filter: blur(0.5px);
}

.hero-container {
    max-width: 1200px;
    padding: 0 20px;
}

.hero-title {
    font-family: 'Natasha', sans-serif;
    font-weight: 700;
    font-size: 48px;
    line-height: 1.2;
    color: #fff;
    text-shadow: none;
    margin: 0;
}

/* Плашка со скролляшейся информацией */
.about-section {
    width: 100%;
    padding: 65px 0;
    text-align: center;
    background: #F5F5F5;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.about-card {
    width: 100%;
    background: #FFFFFF;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.about-image {
    width: 100%;
    height: 122px;
    background: #D9D9D9;
}

.about-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
}

.about-title {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 32px;
    color: #012021;
    margin-bottom: 20px;
}

.about-text {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 1.5;
    color: #012021;
    margin-bottom: 30px;
}

.about-button {
    height: 43px;
    width: 184px;
    background-color: #FFFFFF;
    padding: 12px 24px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 16px;
    cursor: pointer;
    align-self: center;
    border: 1px solid rgb(14,100,102);
    border-radius: 8px;
}

.nav-button {
    background: none;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.prev-button {
    left: -50px;
}

.next-button {
    right: -50px;
}

.nav-icon {
    font-size: 32px;
    color: #0E6466;
    font-weight: bold;
}

/* Секция с картой, фильтрами и организациями */
.organizations-section {
    width: 100%;
    padding: 60px 0;
    background: #F5F5F5;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-family: 'Natasha', sans-serif;
    font-weight: 700;
    font-size: 32px;
    text-align: center;
    text-transform: uppercase;
    color: #012021;
    margin-top: 10px;
    margin-bottom: 32px;
}

.organizations-content {
    background: #FFFFFF;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.map-filters-container {
    display: flex;
    gap: 24px;
    margin-bottom: 40px;
}

.map-container {
    flex: 2.3;
    background: #E7F0F2;
    display: flex;
    border: 1px solid;
    border-color: gray;
    min-height: 400px;
}

.filters-menu {
    flex: 1;
    background: #FFFFFF;
    background-color: #E7F0F2;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid;
    border-radius: 16px;
    border-color: gray;
}

.filter-item {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.filter-checkbox {
    margin-right: 10px;
    width: 18px;
    height: 18px;
}

.filter-item label {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 16px;
    color: #012021;
    cursor: pointer;
}

.organizations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.organization-card {
    background: #FFFFFF;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

    .organization-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    }

    .organization-card, .organization-card:hover {
        border: 1px solid;
        border-radius: 16px;
        border-color: gray;
    }

.org-image {
    width: 100%;
    height: 180px;
    background: url('../static/main/Social-effect.svg') center center/cover no-repeat;
    border-radius: 12px;
    margin-bottom: 20px;
}

.org-title {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 20px;
    color: #012021;
    margin-bottom: 10px;
}

.org-description {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5;
    color: #012021;
    margin-bottom: 20px;
    flex-grow: 1;
}

.org-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.detail {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.detail-icon {
    font-size: 18px;
    color: #0E6466;
    margin-top: 2px;
}

.detail-text {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.4;
    color: #012021;
}

.more-projects {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    text-align: center;
}

.more-number {
    font-family: 'Itim', cursive;
    font-weight: 400;
    font-size: 48px;
    color: #012021;
    margin-bottom: 10px;
}

.more-label {
    font-family: 'Itim', cursive;
    font-weight: 400;
    font-size: 24px;
    color: #012021;
    margin-bottom: 20px;
}

.view-all-button {
    background: #ffffff;
    color: #000000;
    padding: 12px 24px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 16px;
    cursor: pointer;
    width: 100%;
    border-color: gray;
    border-radius: 8px;
    border-width: 1px;
}


/* Секция с часто задаваемыми вопросами */
.faq-section {
    width: 100%;
    padding: 60px 0;
    background: #F5F5F5;
}

.faq-content {
    max-width: 1200px;
    margin: 0 auto;
    background: #FFFFFF;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.faq-list {
    width: 100%;
    margin: 0 auto;
}

.faq-item {
    background: #E7F0F2;
    border: 1px solid #E7F0F2;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid;
    border-radius: 16px;
    border-color: gray;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.question-text {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 18px;
    color: #012021;
}

.question-arrow {
    font-size: 20px;
    color: #0E6466;
    transition: transform 0.3s;
}

.faq-item:hover .question-arrow {
    transform: rotate(90deg);
}

.farrow {
    display: inline-block;
    margin: 0 0.5em;
    border-top: 6px solid transparent;
    border-left: 8px solid #000000;
    border-bottom: 6px solid transparent;
    transition: all 0.3s;
}

.faq-item:hover {
    border-color: #000000;
}

.farrow-rotated {
    transform: rotate(90deg);
    border-left-color: #0E6466;
}

.faq-answer {
    padding: 15px 0 5px 0;
    font-size: 18px;
    line-height: 1.5;
    color: #555;
    display: none;
}

.faq-item.active {
    height: auto;
}

    .faq-item.active .faq-answer {
        display: block;
    }

/* Футер */
footer {
    display: flex;
    align-items: center;
    /* width: 100%; */
    font-size: 14px;
    color: var(--text-color);
    padding: 10px 180px;
    background: #0E6466;
    justify-content: left 1rem;
    color: white;
    gap: 1rem;
    position: relative;
}

.contacts {
    margin-left: 10rem;
}

.contact-item {
    position: relative;
    top: -1rem;
}

    .contact-item a {
        color: white;
    }

.contact-icon {
    font-size: 20px;
    color: #FFFFFF;
}

.contact-text {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 16px;
    color: #FFFFFF;
}

@media screen and (min-width: 390px) {
    .map-filters-container {
        flex-direction: column;
    }

    .map-container {
        width: 100%;
        height: 150px;
        margin-bottom: 24px;
    }

    .organization-card {
        max-width: 70%;
    }

    .section-container {
        max-width: 95%;
    }

    .filters-menu {
        width: 85%;
    }

    .contacts {
        margin-left: 0;
    }

    footer {
        padding: 10px 10px;
        text-align: center;
        align-items: center;
        justify-content: center;
        display: block;
    }

    .hero-title {
        font-size: 36px;
        line-height: 1;
    }
}

/* Add media query for responsive layout */
@media screen and (min-width: 430px) {
    .organization-card {
        max-width: 80%;
    }
}

@media screen and (min-width: 768px) {
    .map-filters-container {
        flex-direction: unset;
    }

    .map-container {
        width: 100%;
        height: 150px;
        margin-bottom: 24px;
    }

    .organization-card {
        max-width: 100%;
    }

    .section-container {
        max-width: 100%;
    }

    .filters-menu {
        width: 100%;
    }

    .contacts {
        margin-left: 0;
    }

    footer {
        padding: 10px 10px;
        text-align: center;
        align-items: center;
        justify-content: center;
        display: block;
    }

    .hero-title {
        font-size: 48px;
        line-height: 1.2;
    }
}