/* ===== Global Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Arial", sans-serif;
    color: #726D6D;
}

a{
    cursor: pointer;
    color: #23A000;
    text-decoration: none;
}


body {
    line-height: 1.6;
    background-color: #F4EFED;
}


/* ===== Layout ===== */
.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

/* ===== Typography ===== */
.centertitle {
    text-align: center;
}

p {
    margin-bottom: 1.5rem;
}

/* Hidden H1 for SEO */
h1 {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

h2 {
    margin-bottom: 2rem;
    text-transform: uppercase;
    font-size: 24px;
    line-height: 1;
    font-weight: 500;
}
.map-title{
    margin-bottom: 1rem;
}

h4 {
    font-size: 14px;
    font-weight: normal;
}

h6 {
    text-transform: uppercase;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.1;
}

h6 a {
    color: #726D6D;
}

h6 a:hover {
    color:  #23a000;
    transition: color 0.3s ease;
}

/* ===== Buttons ===== */
.button {
    color: white;
    border: none;
    padding: 10px 24px;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    font-weight: 400;
}

.button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.button:active {
    transform: translateY(1px);
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.green-button {
    background-color: #23a000;
    margin-bottom: 50px;
}

.green-button:hover {
    background-color: #28b800;
}

.green-button:active {
    background-color: #1e8a00;
}

.brown-button {
    background-color: #AA9090;
    width: 70%;
}

.brown-button:hover {
    background-color: #B89E9E;
}

.brown-button:active {
    background-color: #9C8282;
}

.grey-button {
    background-color: #696969;
    margin-bottom: 50px;
}

.grey-button:hover {
    background-color: #949494;
}

.grey-button:active {
    background-color: #575757;
}

/* ===== Header ===== */
header {
    background-color: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding:15px 0;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.logo img {
    max-width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

/* Desktop Navigation */
.main-nav {
    display: block;
}

.mainmenu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    text-transform: uppercase;
}

.mainmenu li {
    margin-left: 25px;
}

.mainmenu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

.mainmenu a:hover {
    color: #1e8a00;
}
.mainmenu a.active {
    font-weight: 700;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 21px;
    flex-direction: column;
    justify-content: space-between;
    z-index: 1001;
}

.menu-toggle .bar {
    height: 3px;
    width: 100%;
    background-color: #333;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.menu-toggle.active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* ===== Main Content ===== */
main {
    padding: 80px 0;
}

section {
    margin-bottom: 30px;
}

.section-white {
   /* position: relative;*/
    background: rgba(255,255,255,0.6);
    padding: 100px 0;
}

.text-option {
    margin-bottom: 30px;
}

/* ===== Floating Image ===== */
#floating-image {
    position: fixed;
    z-index: -999;
    top: 0;
    left: 0;
    width: 650px;
    height: auto;
    pointer-events: none;
    transition: transform 0.3s ease;
    will-change: transform;
}

/* ===== First Screen Block ===== */
.flexx-mod {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.first-screen {
    flex: 1;
    min-width: 300px;
}

.fm-map-container {
    height: 570px;
    margin-top: -50px;
}

/* ===== Radio Group ===== */
.radio-group {
    display: flex;
    flex-direction: column;
    max-width: 480px;
}

.radio-option {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.radio-option input[type="radio"] {
    margin-right: 10px;
    appearance: none;
    width: 16px;
    height: 16px;
    border: 2px solid #ccc;
    border-radius: 50%;
    outline: none;
    transition: border 0.2s ease;
}

.radio-option input[type="radio"]:checked {
    border: 5px solid #23a000;
}

.custom-option {
    align-items: flex-start;
}

.underlined-input {
    border: none;
    border-bottom: 1px solid #ccc;
    padding: 5px 0;
    width: 300px;
    outline: none;
}

/* ===== Popular Initiatives Chart ===== */
.chart-container {
    max-width: 400px;
    margin: 0 auto;
    padding: 20px 0;
}

.columns-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    height: 250px;
    gap: 20px;
    position: relative;
}

.column-group {
    display: flex;
    align-items: flex-end;
    gap: 25px;
    height: 100%;
}

.column {
    width: 30px;
    display: flex;
    justify-content: center;
    align-items: end;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: all 0.3s ease;
}

.column-group:nth-child(1) .column {
    background: #BB4C4B;
}

.column-group:nth-child(2) .column {
    background: #A5468B;
}

.column-group:nth-child(3) .column {
    background: #F27F95;
}

.column-group:nth-child(4) .column {
    background: #FBBE68;
}

.column-group:nth-child(5) .column {
    background: #B98383;
}

.vertical-text {
        writing-mode: vertical-rl;
        transform: rotate(180deg);
        text-orientation: mixed;
        color: white;
        text-shadow: -1px -1px 2px #493c3c;
        letter-spacing: 1px;
        padding: 7px 0;
        transition: all 0.3s ease;
}

.category-name {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    text-orientation: mixed;
    text-transform: uppercase;
    height: 100%;
    display: flex;
    align-items: flex-end;
    margin-bottom: 5px;
    margin-left: -20px;
}

.base-line {
    height: 3px;
    width: 100%;
    background-color: #E8DFDF;
    margin-top: 0;
}

.caption {
    text-align: center;
    margin-top: 10px;
    font-style: italic;
}

/* Анимация для столбиков */
.column:hover {
    transform: scaleY(1.1) translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.column:hover .vertical-text {
    font-weight: bold;
}

/* ===== News Section ===== */
.main-content {
    display: flex;
    gap: 30px;
    padding: 0;
}

.news {
    margin-bottom: 3.5rem;
}

.news-columns {
    display: flex;
    gap: 30px;
    flex: 2
}

.news-column,
.initiatives-column {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-column-second {
    padding-top: 5rem;
}

.news-block {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.news-category {
    font-weight: bold;
    text-align: center;
    font-size: 0.85em;
    text-transform: uppercase;
    background-color: #E8DFDF;
    padding: 5px 12px;
    margin-bottom: 10px;
    display: inline-block;
    align-self: flex-start;
}

.news-title {
    margin-bottom: 10px;
    font-size: 1.2em;
    line-height: 1.1;
}
.news-title a {
    color: #726D6D;
}

.news-title a:hover {
    color:  #23a000;
    transition: color 0.3s ease;
}

.news-text {
    margin-bottom: 20px;
    font-size: 0.95em;
    line-height: 1.5;
}

.news-date {
    color: #726D6D;
    font-size: 0.8em;
    text-align: left;
    font-weight: bold;
}

.initiative-block {
    margin-bottom: 30px;
}
.initiative-block h6:hover {
    color: #6A5555;
    transition: color 0.3s ease;
}

.initiative-block img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* ===== Newsletter ===== */
.newsletter {
    padding: 40px 20px 0;
    text-align: center;
}

.newsletter-container {
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-title {
    font-weight: 500;
    margin-bottom: 10px;
    font-size: 20px;
}

.newsletter-subtitle {
    margin-bottom: 25px;
    line-height: 1.4;
}

.newsletter-form {
    display: flex;
    justify-content: center;
}

.form-group {
    display: flex;
    width: 100%;
    gap: 10px;
}

.newsletter-input {
    flex: 1;
    max-width: 350px;
    padding: 10px 15px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    outline: none;
    transition: all 0.2s;
    box-sizing: border-box;
    height: 40px;
}

.newsletter-input::placeholder {
    color: #c0c0c0;
    opacity: 1;
    font-weight: 300;
}

.newsletter-input:focus::placeholder {
    color: #e0e0e0;
}

.newsletter-input:focus {
    border-color: #4CAF50;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}


/* ===== Partners Slider ===== */
.partner-title {
    padding-top: 50px;
    margin: 0 auto;
}



/* ===== Footer===== */
footer {
    position: relative;
    background-color: rgba(255,255,255,0.6);
    padding: 40px 0 20px;
}

.footer-columns {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-column {
    flex: 1;
    min-width: 250px;
}

.logo img {
    max-width: 100%;
    height: auto;
}

.footer-column p {
    margin-top: 25px;
    margin-bottom: 15px;
    line-height: 1.5;
    margin-bottom: 0;
}

.email-line {
    display: inline-flex;
    font-size: 20px;
    font-weight: bold;
}

.email-name {
    color: #D90E15;
}

.email-domain {
    color: #23A000;
}

/* ===== Back to Top Button ===== */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: none;
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background-color: #AA9090;
    color:  #F4EFED;
    cursor: pointer;
    font-size: 24px;
    line-height: 50px;
    text-align: center;
    z-index: 999;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

#back-to-top:hover {
    background-color: #23a000;
    transform: translateY(-3px);
}

#back-to-top:active {
    transform: translateY(1px);
}

/* Стили для всплывающего окна */
#popup {
    display: none;
    position: fixed;
    top: 65%;
    right: 50%;
    background: #9C8282;
    color: #fff;
    padding: 15px 20px;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    transform: translate(50%, 0%);
    z-index: 998;
}

/* ===== Media Queries ===== */
@media (max-width: 1300px) {
    .header-container{
padding: 15px;
    }
    .partners-slider {
        padding-left: 50px;
        padding-right: 50px;
    }

    .slick-prev {
        left: 0 !important;
    }

    .slick-next {
        right: 0 !important;
    }
}

/* Планшетная версия (768px - 1024px) */
@media (max-width: 1024px) {
    /* Общие стили */
    body {
        font-size: 15px;
    }

    h2 {
        font-size: 22px;
        margin-bottom: 1.8rem;
    }

    .container{
        padding: 15px;
    }

    /* Логотипы */
    .logo img {
        max-width: 80%;
    }
    .partner-title{
        padding-top: 0;
    }
    .partner-logo {
        width: 50px;
        height: 50px;
    }

    /* Карта */
    .fm-map-container {
        height: 450px;
        margin-top: -40px;
        margin-bottom: 80px;
    }


    .radio-group{
        max-width: 100%;
    }
    .underlined-input{
        width: 100%;
    }

    /* Новости */
    .news-columns {
        gap: 20px;
    }

    .news-column-second {
        padding-top: 3rem;
    }

    /* Подвал для планшетов */
    footer {
        text-align: center;
    }

    .footer-columns {
        justify-content: center;
        gap: 30px;
    }

    .footer-column {
        flex: 0 0 calc(50% - 30px);
        text-align: center;
    }

    .email-line {
        justify-content: center;
    }
}

/* Мобильная версия (до 768px) */
@media (max-width: 768px) {
    /* Общие стили */
    body {
        font-size: 15px;
        line-height: 1.5;
    }

    h2 {
        font-size: 20px;
        margin-bottom: 1.5rem;
    }

    h4 {
        font-size: 15px;
    }

    h6 {
        font-size: 14px;
    }

    .button {
        margin-bottom: 2rem;
        padding: 12px 20px;
    }

    /* Логотипы */
    .logo img {
        max-width: 70%;
    }

    /* Header */
    .menu-toggle {
        display: flex;
    }

    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #fff;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .main-nav.active {
        max-height: 500px;
    }

    .mainmenu {
        flex-direction: column;
        padding: 0 15px;
    }

    .mainmenu li {
        margin: 0;
        border-top: 1px solid #f0f0f0;
    }

    .mainmenu a {
        display: block;
        padding: 15px 0;
    }

    .mainmenu li:first-child {
        border-top: none;
    }

    /* General */
    main {
        padding: 15px 0;
    }

    .section-white {
        padding: 50px 0 0;
    }

    .fm-map-container {
        height: 350px;
        margin-top: 0;
    }

    /* Chart */
    .chart-container {
        margin: 50px auto 0;
    }

    .columns-wrapper {
        gap: 10px;
    }

    /* News */
    .news-block {
        margin: 20px 0;
    }

    .news-columns {
        gap: 0;
        flex-direction: column;
    }

    .news-column-second {
        padding-top: 0;
    }

    .news {
        margin-bottom: 1.5rem;
    }

    .news-title {
        font-size: 1.1em;
        margin-bottom: 8px;
    }

    .news-text {
        font-size: 0.95em;
        margin-bottom: 15px;
    }

    /* Partners */
    .partners-slider {
        padding-left: 0;
        padding-right: 0;
        margin: 2rem 0;
    }

    .partner-item {
        min-height: 60px;
        padding: 10px 12px;
    }

    .partner-logo {
        width: 40px;
        height: 40px;
    }

    .slick-prev, .slick-next {
        width: 30px;
        height: 30px;
    }

    .slick-prev:before, .slick-next:before {
        font-size: 30px;
    }

    /* Newsletter */
    .newsletter {
        padding: 20px 0;
    }

    .form-group {
        flex-direction: column;
        gap: 12px;
    }

    .newsletter-input, .button {
        width: 100%;
        max-width: 100%;
    }

    /* Подвал для мобильных */
    footer {
        padding: 30px 0 15px;
        text-align: center;
    }

    .footer-columns {
        flex-direction: column;
        gap: 20px;
    }

    .footer-column {
        flex: 0 0 100%;
        text-align: center;
    }

    .footer-column p {
        margin-top: 15px;
    }

    .email-line {
        font-size: 16px;
        justify-content: center;
    }

    /* Back to top */
    #back-to-top {
        width: 40px;
        height: 40px;
        font-size: 20px;
        line-height: 40px;
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 480px) {
    
    body {
        font-size: 14px;
    }

    h2 {
        font-size: 18px;
        margin-bottom: 1.2rem;
    }

    /* Radio group */
    .underlined-input {
        width: 150px;
    }

    .custom-option {
        flex-direction: column;
        align-items: flex-start;
    }

    .underlined-input {
        margin-left: 0;
        margin-top: 5px;
        width: 100%;
    }

    /* News */
    .main-content {
        flex-direction: column;
    }

    .initiatives-title {
        text-align: left;
        margin-top: 30px;
        padding-top: 20px;
    }

    .news-block {
        margin: 15px 0;
    }

    .news-category {
        font-size: 0.8em;
    }
    .news-column{
        margin-top: 30px;
    }
    
    .section-white {
        padding: 0 0;
    }

    /* Подвал */
    footer {
        padding: 30px 0 15px;
    }

    .email-line {
        font-size: 14px;
    }

    /* Логотипы */
    .logo img {
        max-width: 60%;
    }
}



/* ===== Admin Panel Styles ===== */

/* Form Styles */
label {
    display: block;
}

textarea,
input[type="text"] {
    width: 100%;
    max-width: 800px;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    transition: border-color 0.3s ease;
}


textarea:focus,
input[type="text"]:focus {
    outline: none;
    border-color: #23a000;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}


/* Section links */
#news a,
#projects a,
#realized a,
#email_newsletter a {
    display: inline-block;
    margin-right: 15px;
    margin-bottom: 15px;
}

#news a button,
#projects a button,
#realized a button,
#email_newsletter a button {
    background-color: #AA9090;
    margin-top: 0;
    margin-bottom: 0;
}
