body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;

    
}



.container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 300px;
    background-color: #f4f4f4;
    background: linear-gradient(rgba(238, 241, 247, 0.92), rgba(238, 241, 247, 0.90)), 
    url('../img/header.jpg') no-repeat center;
    background-size: cover;
    padding: 15px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-y: auto;
    font-size: 14px;
}

.sidebar-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    background-color: #0e796c;
    border-radius: 5px;
    margin-bottom: 15px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.logo-and-name {
    display: flex;
    align-items: center; 
    gap: 10px;
    margin-bottom: 10px; 
}

.site-description {
    font-size: 12px;
    color: #bbb;
    text-align: center;
}


.logo {
    width: 50px;
    height: 50px;
    border-radius: 10%;
    margin-right: 5px;
}

.site-name {
    font-size: 12px;
    font-weight: bold;
    color: #ffffff; 
}

.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
    font-weight: bold;
    color: #0e796c;
}

.sidebar li {
    padding: 10px;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
}

.sidebar li.active {
    background-color: #0e796c;
    font-weight: bold;
    border-radius: 10px;
    color: aliceblue;
}

.menu-icon {
    margin-right: 10px;
    font-size: 14px;
}


.content {
    flex: 1;
    padding: 3em 5em;
}

.mobile-menu {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #f4f4f4;
    border-top: 1px solid #edebeb;
    text-align: center;
    padding: 10px 0;
    z-index: 1000;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.mobile-menu button {
    padding: 10px 20px;
    font-size: 16px;
    border: none;
    background-color: #007bff;
    color: white;
    border-radius: 5px;
    cursor: pointer;
}

.mobile-menu button:hover {
    background-color: #0056b3;
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 999;
    transition: opacity 0.3s ease;
}

.overlay.active {
    display: block;
    opacity: 1;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: #550052;
}

.home li {
    margin: 10px;
    text-decoration: underline;
    color:#0056b3;
}

h1 {
    color: #393939;
}

.content p {
    text-indent: 3em;
    text-align: justify;
    font-size: 16px;
    margin: 5px;
    color: #474747;
}

.blocks {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.text {
    flex: 8;
}

.image {
    flex: 2;
    text-align: center;
}

.text2 {
    flex: 3;
}

.image2 {
    flex: 2;
    text-align: left;
}

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


.flex-container {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}
.column {
    flex: 1;
    max-width: 25%;
    padding: 20px;
    text-align: center;
}


.firstimg {
    display: block; 
    margin: auto; 
    width: 30%;
}

.intro-text {
    background: rgba(255,255,255,0.90);
    border-radius: 18px;
    padding: 32px 28px;
    margin: 32px 0 0 0;
    font-size: 20px;
    color: #1b4332;
    box-shadow: 0 2px 12px rgba(44,62,39,0.08);
    line-height: 1.5;
}

.intro-header {
    background: rgba(255,255,255,0.9);
    border-radius: 18px;
    padding: 24px 28px;
    margin: 32px 0 0 0;
    font-size: 34px;
    color: #1b4332;
    box-shadow: 0 2px 12px rgba(44,62,39,0.08);
}

.intro-text p {
    margin-bottom: 18px;
    color: #1b4332;
}

.main1 {
    background-image: url('../img/main.png'); 
    background-repeat: no-repeat; 
    background-position: right bottom;
    background-size: 100%;
 }

.main2 {
    background-image: url('../img/main2.png'); 
    background-repeat: no-repeat; 
    background-position: right bottom;
    background-size: 100%;
 }

.main3 {
    background-image: url('../img/main3.png'); 
    background-repeat: no-repeat; 
    background-position: right bottom;
    background-size: 100%;
}

.main4 {
    background-image: url('../img/main4.png'); 
    background-repeat: no-repeat; 
    background-position: right bottom;
    background-size: 100%;
}

.comment {
    font-size: 1.4rem; 
    color: #0e796c; 
    margin: 0; 
    font-style: italic;
    font-weight: bold;
}

.author-comment {
    font-size: 1.1rem; 
    color: #666; 
    margin: 10px 0 0 0; 
    text-align: right;
}

.back-button {
    margin: 20px 0; 
    display: inline-block; 
    padding: 10px 20px; 
    background-color: #0e796c; 
    color: white; 
    text-decoration: none; 
    border-radius: 5px; 
    font-weight: bold;
}

.back-button:hover {
    background-color: #790e42;
    color: white; 
}

@media (max-width: 768px) {
    .firstimg {
        display: block; 
        margin: auto; 
        width: 100%;
    }

    .column {
        max-width: 100%;
        padding: 10px;
    }
    .flex-container {
        flex-direction: column;
        grid-template-columns: 1fr;
    }

    .blocks {
        flex-direction: column;
        grid-template-columns: 1fr;
    }

    .image {
        text-align: center;
    }

    h1 {
        font-size: 20px;
    }

    .content p {
        text-indent: 3em;
        text-align: justify;
        font-size: 14px;
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1000;
        height: 100%;
    }

    .content {
        padding: 1em;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .mobile-menu {
        display: flex;
        justify-content: space-around;
    }

    .mobile-menu {
        display: flex;
        justify-content: space-around;
        padding: 10px 0;
        background-color: #f4f4f4;
        border-top: 1px solid #edebeb;
    }

    .menu-item {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-decoration: none;
        color: #616161;
        font-size: 12px;
    }

    .menu-item span {
        margin-top: 5px;
    }

    .intro-header {
        font-size: 24px;
    }

    .comment {
        font-size: 1.1em; 
        color: #0e796c; 
        margin: 0; 
        font-style: italic;
        font-weight: bold;
    }
    
    .author-comment {
        font-size: 1em; 
        color: #666; 
        margin: 10px 0 0 0; 
        text-align: right;
    }

}

/* Сетка для карточек */
.card-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 20px;
}

/* Стили для карточки */
.card {
    background: rgba(14, 121, 108, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(14, 121, 108, 0.2);
    padding: 20px;
    cursor: pointer;
    transition: transform 0.2s;
    border: 1px solid rgba(14, 121, 108, 0.2);
}

.card h3 {
    margin-bottom: 15px;
    color: #0e796c;
}

.card:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 8px 24px rgba(14, 121, 108, 0.25);
    background: rgba(14, 121, 108, 0.18);
}

@media (max-width: 1100px) {
    .card-container {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 700px) {
    .card-container {
        grid-template-columns: 1fr;
    }
}

