/* style.css */
/*@font-face {
    font-family: "Berlin";
    src: url('/fonts/BerlinSansFBCyrillic-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap; } */

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

body {
    font-family: 'Montserrat', 'Arial', sans-serif;
    background-color: rgba(231, 241, 217, 0.7);
}
.block{
    max-width: 1650px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

/*headers*/

/*headers*/

.logo-img{
    width: 100%;
    max-width: 120px;
}
.header-block {
    display: flex;
    flex-direction: row;
    gap: 15px;
    padding: 0 30px;
    margin: 20px auto;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
    max-width: 1300px;
    width: 100%;
}
@media (min-width: 768px) {
    header{
        flex-direction: row;
        padding: 10px 0;
    }
}
header{
    background: #fdfdfd;
    display: flex;
    margin: auto;
}

/* Логотип */
header h1 {
    color: #0d3c13;
    font-size: 32px;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
    line-height: 1.2;
}

/* Навигация */
nav {
    display: flex;
    gap: 25px;
}

nav a {
    color: #3b5e1b;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    padding: 8px 4px;
    position: relative;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-a {
    border-radius: 15px;
    padding: 12px 8px;
}

/* Эффект подчеркивания при наведении */
nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: #3b5e1b;
    transition: width 0.3s ease;
}

.nav-a:hover {
    background-color: rgba(80, 108, 59, 0.2);
}

nav a:hover::after {
    width: 100%;
}

/* Гамбургер-меню стили */
.menu-toggle-input {
    display: none;
}

.menu-toggle-label {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
    margin-right: 15px;
}

.menu-toggle-label span {
    width: 25px;
    height: 3px;
    background-color: #3b5e1b;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Адаптивность: показываем гамбургер и скрываем nav на мобильных */
@media (max-width: 1024px) {
    .header-block {
        position: relative;
        flex-direction: row;
        justify-content: space-between;
        padding: 15px;
    }

    header h1 {
        font-size: 24px;
        letter-spacing: 1px;
        margin: 0;
    }

    .menu-toggle-label {
        display: flex;
    }

    .nav-container {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #f5f5f5;
        flex-direction: column;
        padding: 20px 15px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        gap: 0;
        z-index: 1000;
    }


    .menu-toggle-input:checked ~ .nav-container {
        display: flex;
    }

    /* ИСПРАВЛЕННАЯ анимация гамбургера в крестик */
    .menu-toggle-input:checked ~ .menu-toggle-label span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .menu-toggle-input:checked ~ .menu-toggle-label span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle-input:checked ~ .menu-toggle-label span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
}



.hero-section {
    position: relative;
    width: 100%;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 50px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(40, 87, 22, 0.38);
    z-index: 1;
}

.about_us_block {
    position: relative;
    z-index: 2;
    color: white;
    max-width: 1000px;
    padding: 20px;
    text-align: start;
}

.about_us_block h2 {
    font-size: 25pt;
    font-weight: 600;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.34);
    color: #f2faea;
    line-height: 1.8;
}
.about_us_block p {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.34);
    color: #f2faea;
    opacity: 0.95;
}
/* Адаптивность  */
@media (max-width: 1024px) {
    .about_us_block{
        box-sizing: border-box;
    }
    .about_us_block h2 {
        font-size: 20px;
        align-items: center;
    }
    .about_us_block {
        padding: 5px;
    }
}
.but {
    display: inline-block;
    background-color: #1a451a;
    color: white;
    padding: 10px 10px;
    text-decoration: none;
    font-weight: 400;
    border-radius: 30px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
}

.but:hover, .but-new:hover {
    background-color: #0d3c13;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(59, 94, 27, 0.4);
}
/* Анимация главной страницы */

/* Блок новостей - улучшения */
.new-news {
    padding: 50px 20px;
    animation: fadeInUp 0.6s ease-out;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
}

.new-news h2 {
    color: #0d3c13;
    font-size: 25pt;
    font-weight: 600;
    margin: 15px 0 30px;
    padding: 10px 20px;
    display: inline-block;
}

.block-news {
    display: flex;
    flex-wrap: wrap;
    gap: 35px;
    justify-content: space-between;
    max-width: 1500px;
    width: 100%;
    margin-top: 30px;
}

.news-item {
    flex: 1 1 320px;
    max-width: 450px;
    padding: 20px;
    border-radius: 15px;
    background: rgba(73, 96, 46, 0.21);
    color: #0d3c13;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(73, 96, 46, 0.2);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 500px;
}

.news-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #43602e, #3b5e1b, #43602e);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.news-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 15px;
    flex-shrink: 0;
}


.news-item h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.4;
    flex-shrink: 0;
}

.news-item p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #2c3e2b;
    flex: 1; /* Растягивает текст */
}

.but-new {
    margin-top: auto;
    align-self: flex-start;
    background-color: #43602e;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    border-radius: 30px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    flex-shrink: 0;
}

/* ДЕСКТОП 1440+ */
@media (min-width: 1440px) {
    .block-news { gap: 40px; }
    .news-item { max-width: 450px; }
}

/* ДЕСКТОП 1200-1439 */
@media (min-width: 1200px) {
    .block-news { gap: 30px; }
    .news-item { max-width: 420px; }
}

/* ПЛАНШЕТ БОЛЬШОЙ 1024-1199 */
@media (max-width: 1199px) {
    .new-news { padding: 45px 15px; }
    .block-news { gap: 25px; justify-content: center; }
    .news-item { max-width: 380px; }
    .new-news h2 { text-align: center; margin-bottom: 25px; }
}

/* ПЛАНШЕТ 768-1023 */
@media (max-width: 1023px) {
    .new-news { padding: 40px 15px; }
    .news-item {
        flex: 1 1 280px;
        max-width: 350px;
        padding: 18px;
    }
    .news-item img { height: 180px; }
    .news-item h3 { font-size: 17px; }
    .news-item p { font-size: 13px; }
}

/* МОБИЛЬНЫЙ БОЛЬШОЙ 481-767 */
@media (max-width: 767px) {
    .new-news { padding: 35px 12px; }
    .block-news {
        flex-direction: column;
        align-items: center;
        gap: 25px;
    }
    .news-item {
        max-width: 100%;
        width: 100%;
        height: 800px;
        padding: 20px;
    }
    .news-item img { height: 200px; }
    .news-item h3 { font-size: 18px; }
    .news-date { font-size: 13px; }
    .but-new { padding: 8px 16px; font-size: 13px; }
}

/* МОБИЛЬНЫЙ 361-480 */
@media (max-width: 480px) {
    .new-news { padding: 25px 10px; }
    .new-news h2 {
        font-size: 22px;
        margin: 0 auto 20px;
        width: fit-content;
    }
    .news-item { padding: 16px; }
    .news-item img { height: 160px; }
    .news-item h3 { font-size: 16px; }
    .news-item p { font-size: 13px; }
    .but-new { padding: 8px 14px; font-size: 12px; }
}

/* МОБИЛЬНЫЙ МАЛЕНЬКИЙ */
@media (max-width: 360px) {
    .new-news { padding: 20px 8px; }
    .news-item img { height: 140px; }
    .news-item h3 { font-size: 15px; }
    .but-new { padding: 7px 12px; font-size: 11px; }
}

.about-activities h2 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 20px;
}

/* Блок "Консультации и поддержка" */

.services h2 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 20px;
}

.services-list {
    margin: 20px 0 0;
    padding-left: 20px;
}

.services-list li {
    font-size: 15px;
    color: #2c3e2b;
    margin-bottom: 10px;
    list-style-type: disc;
}

/* Адаптивность для главной страницы */
@media (max-width: 1024px) {
    .new-news {
        padding: 40px 15px;
    }

    .block-news {
        gap: 25px;
    }

    .services {
        margin: 25px auto 35px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 450px;
    }

    .about_us_block h2 {
        font-size: 24px;
        margin-bottom: 10px;
    }

    .about-activities,
    .services {
        padding: 30px 20px;
        margin: 25px auto 30px;
    }
}

@media (max-width: 480px) {
    .about_us_block h2 {
        font-size: 20px;
    }

    .about-activities,
    .services {
        padding: 25px 15px;
        margin: 20px auto 25px;
    }

    .services-list li {
        margin-bottom: 8px;
    }
}

/* Страница новостей */
.new-news-page {
    padding: 40px 15px;
    width: 100%;
    animation: fadeInUp 0.8s ease-out;
}

.block-news-page {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 10px;
}

.news-item-page {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 30px;
    padding: 30px;
    border-radius: 20px;
    background: rgba(73, 96, 46, 0.21);
    color: #0d3c13;
    transition: all 0.4s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(73, 96, 46, 0.2);
    position: relative;
    overflow: hidden;
}

.news-item-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #43602e, #3b5e1b, #43602e);
    animation: shimmer 2s infinite;
}

.news-item-page:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(13, 60, 19, 0.2);
    background: rgba(73, 96, 46, 0.3);
}

.news-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 220px;
}

.news-text h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.4;
}

.news-img {
    width: 350px;
    height: 300px;
    object-fit: cover;
    border-radius: 16px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.news-item-page:hover .news-img {
    transform: scale(1.05);
}

.no-news-message {
    text-align: center;
    padding: 60px 20px;
    background: rgba(73, 96, 46, 0.1);
    border-radius: 20px;
    color: #2c3e2b;
    font-size: 18px;
    margin: 0 auto;
}




/*footer*/


.footer-block {
    margin-top: auto;
    background-color: rgba(59, 94, 27, 0.51);
    color: #112e14;
    padding: 40px 0;
    width: 100%;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 40px;
    align-items: start;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0 40px;
    box-sizing: border-box;
}

.footer-info,
.footer-nav,
.footer-contacts {
    width: 100%;
    text-align: left;
}

.footer-info h3 {
    font-size: 28px;
    font-weight: 900;
    letter-spacing: 1px;
    margin-bottom: 8px;
    color: #0d3c13;
}

.footer-info p {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    margin-bottom: 0;
    color: #2c3e2b;
    max-width: 420px;
}

.footer-nav h4,
.footer-contacts h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #091509;
}

.footer-links-columns {
    display: grid;
    grid-template-columns: repeat(2, max-content);
    gap: 10px 40px;
    align-items: start;
}

.footer-links-column {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links-column .nav-a {
    padding: 0;
    border-radius: 0;
    background: transparent;
}

.footer-links-column .nav-a a {
    display: inline-block;
    white-space: nowrap;
    color: #2c3e2b;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 4px 0;
}

.footer-links-column .nav-a a:hover {
    color: #0d3c13;
}

.footer-contacts address,
.footer-contacts p {
    font-size: 14px;
    line-height: 1.5;
    margin-top: 0;
    margin-bottom: 5px;
    font-style: normal;
    color: #2c3e2b;
}

.footer-contacts a {
    color: #3b5e1b;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contacts a:hover {
    color: #0d3c13;
}

@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
        padding: 0 20px;
    }

    .footer-info {
        grid-column: 1 / -1;
    }

    .footer-info h3 {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .footer-block {
        padding: 30px 0;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
        text-align: center;
        padding: 0 18px;
    }

    .footer-info,
    .footer-nav,
    .footer-contacts {
        text-align: center;
    }

    .footer-info p {
        margin: 0 auto;
    }

    .footer-links-columns {
        grid-template-columns: repeat(2, max-content);
        justify-content: center;
        gap: 10px 24px;
    }

    .footer-links-column {
        align-items: center;
    }

    .footer-info h3 {
        font-size: 22px;
    }

    .footer-nav h4,
    .footer-contacts h4 {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .footer-block {
        padding: 25px 0;
    }

    .footer-content {
        padding: 0 14px;
        gap: 20px;
    }

    .footer-info h3 {
        font-size: 20px;
        letter-spacing: 1px;
    }

    .footer-info p,
    .footer-contacts p,
    .footer-contacts address,
    .footer-links-column .nav-a a {
        font-size: 13px;
        line-height: 1.4;
    }

    .footer-nav h4,
    .footer-contacts h4 {
        font-size: 14px;
    }

    .footer-links-columns {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

@media (max-width: 360px) {
    .footer-block {
        padding: 20px 0;
    }

    .footer-content {
        padding: 0 10px;
        gap: 18px;
    }

    .footer-info h3 {
        font-size: 18px;
    }

    .footer-info p,
    .footer-contacts p {
        font-size: 12px;
    }
}

/*page-name*/
.page-name {
    position: relative;
    width: 100%;
    min-height: 400px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px; /* Уменьшен padding для мобильных */
}

.page-name::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(40, 87, 22, 0.25); /* Усилен для лучшей читаемости */
    z-index: 1;
}

.page-name h1 {
    font-size: clamp(28px, 5vw, 48px); /* Адаптивный размер */
    font-weight: 600;
    margin: 0 auto;
    color: #ffffff;
    padding: 20px 30px;
    text-align: center;
    position: relative;
    z-index: 2;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5); /* Тень для объёма */
    letter-spacing: 1px;
    line-height: 1.2;
    max-width: 90%; /* Не выходит за экран */
}

/* Планшеты (1024px и меньше) */
@media (max-width: 1024px) {
    .page-name {
        min-height: 350px;
        padding: 15px;
    }

    .page-name h1 {
        padding: 15px 25px;
        max-width: 95%;
    }
}

/* Мобильные большие (768px и меньше) */
@media (max-width: 768px) {
    .page-name {
        min-height: 300px;
        padding: 10px;
    }

    .page-name h1 {
        font-weight: 600;
        padding: 12px 20px;
        letter-spacing: 0.5px;
    }
}

/* Мобильные маленькие (480px и меньше) */
@media (max-width: 480px) {
    .page-name {
        min-height: 250px;
    }

    .page-name h1 {
        padding: 10px 15px;
        font-size: clamp(24px, 8vw, 32px);
    }
}
/* Страница новостей — один столбик */
.new-news-page {
    padding: 40px 15px; /* Уменьшен padding по бокам */
    max-width: 100%; /* Полная ширина */
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
    animation: fadeInUp 0.8s ease-out;
}

.block-news-page {
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 100%; /* Полная ширина контейнера */
    max-width: 1400px; /* Максимум чуть больше стандартного */
    margin: 0 auto;
    padding: 0 10px; /* Минимальный отступ */
}

/* Карточки на всю ширину */
.news-item-page {
    background-color: rgba(73, 96, 46, 0.21);
    border-radius: 20px;
    padding: 30px;
    color: #0d3c13;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 30px;
    box-sizing: border-box;
    transition: all 0.4s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(73, 96, 46, 0.2);
    position: relative;
    overflow: hidden;
    width: 100%; /* Полная ширина родителя */
}

.news-text {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    min-height: 220px;
    justify-content: space-between;
}

.news-img {
    width: 350px; /* Фиксированная ширина изображения */
    height: 300px;
    object-fit: cover;
    border-radius: 16px;
    flex-shrink: 0;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

/* Один блок новости: слева текст, справа картинка */
.news-item-page:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    background-color: rgba(73, 96, 46, 0.3);
}

/* Левая часть — текст */
.news-text {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 200px;
    justify-content: space-between;
}

.news-text h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.4;
    color: #0d3c13;
}

.news-date {
    color: #3b5e1b;
    font-weight: 600;
    font-size: 14px;
    display: block;
}

.news-text p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 0;
    color: #2c3e2b;
}

/* Кнопка под блоком */
.but-new {
    margin-top: 15px;
    align-self: flex-start;
    display: inline-block;
    background-color: #43602e;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    border-radius: 30px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
}


.but-new:hover {
    background-color: #0d3c13;
    transform: translateY(-2px);
}

/* Адаптивность: на мобильных картинка сверху, текст под ней */
@media (max-width: 768px) {
    .news-item-page {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }
    .news-item p,
    .news-text {
        flex: 1 1 auto;
    }

    .news-item img,
    .news-img {
        flex-shrink: 0;
    }

    .news-item,
    .news-item-page {
        overflow: hidden;
    }

    .news-item .but,
    .news-item .but-new,
    .news-item-page .but,
    .news-item-page .but-new {
        margin-top: auto;
    }

    .news-img {
        width: 100%;
        height: 180px;
        margin-bottom: 15px;
    }
}

@media (max-width: 480px) {
    .news-item,
    .news-item-page {
        display: flex;
        flex-direction: column;
    }

    .news-item p,
    .news-text {
        flex: 1 1 auto;
    }

    .news-item img,
    .news-img {
        flex-shrink: 0;
    }

    .news-item,
    .news-item-page {
        overflow: hidden;
    }

    .news-item .but,
    .news-item .but-new,
    .news-item-page .but,
    .news-item-page .but-new {
        margin-top: auto;
    }
}

.news-show-page {
    padding: 30px 20px;
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
}
.news-show-header {
    padding: 20px 30px;



}
/* Карточка полной новости */
.news-show-item {
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    max-width: 1200px;
    width: 100%;
    box-sizing: border-box;
}

/* Картинка над заголовком */
.news-show-img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
}

/* Заголовок статьи — чуть меньше и мягче */
.news-show-title {
    font-size: 22px;
    font-weight: 600;
    color: #0d3c13;
    margin: 16px 0 10px;
    line-height: 1.4;
}

/* Контент (дата + текст) */
.news-show-content {
    padding: 20px 25px;
}

/* Основной текст статьи */
.news-show-text {
    font-size: 15px;
    line-height: 1.8;
    color: #2c3e2b;
}

/* Если контент в HTML */
.news-show-text h1,
.news-show-text h2,
.news-show-text h3 {
    color: #0d3c13;
    margin-top: 20px;
    margin-bottom: 8px;
}

/* Адаптив */
@media (max-width: 1024px) {
    .news-show-item {
        max-width: 900px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .news-show-item {
        border-radius: 12px;
        max-width: 700px;
    }

    .news-show-title {
        font-size: 20px;
    }

    .news-show-img {
        height: 240px;
    }
}

@media (max-width: 480px) {
    .news-show-page {
        padding: 15px 10px;
    }

    .news-show-item {
        margin: 0 0;
        max-width: 100%;
        border-radius: 12px;
    }

    .news-show-title {
        font-size: 18px;
    }

    .news-show-img {
        height: 200px;
    }
}
/* Галерея (фото из новости) */
.news-gallery {
    padding: 20px 25px;
    border-top: 1px solid #e8f5e0;
}

.news-gallery-title {
    font-size: 16px;
    font-weight: 600;
    color: #0d3c13;
    margin-bottom: 12px;
}

.news-gallery-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.news-gallery-link {
    display: block;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s ease;
}

.news-gallery-link:hover {
    transform: scale(1.05);
}

.news-gallery-img {
    width: 150px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

/* Оверлей для просмотра изображения */
.news-gallery-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.news-gallery-modal {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.news-gallery-modal-img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
}

.news-gallery-close {
    position: absolute;
    top: 10px;
    right: 10px;
    border: none;
    color: #ffffff;
    font-size: 28px;
    cursor: pointer;
    z-index: 10;
    padding: 5px 10px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.5);
}

.news-gallery-close:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* Адаптив */
@media (max-width: 768px) {
    .news-gallery-list {
        gap: 8px;
    }

    .news-gallery-img,
    .news-gallery-link {
        width: 140px;
        height: 110px;
    }
}

@media (max-width: 480px) {
    .news-gallery-list {
        gap: 6px;
    }

    .news-gallery-img,
    .news-gallery-link {
        width: 120px;
        height: 96px;
    }
}

/* Страница "О нас" */
.about-page {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 40px 20px;
    box-sizing: border-box;
}

.about-main-content {
    animation: fadeInUp 0.8s ease-out;
}

/* Герой-секция */
.about-hero {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 50px;
    margin-bottom: 60px;
    align-items: center;
}

.about-hero-text h2.about-title {
    font-size: 36px;
    font-weight: 900;
    color: #3b5e1b;
    margin-bottom: 15px;
    line-height: 1.2;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.about-subtitle {
    font-size: 18px;
    color: #3b5e1b;
    font-weight: 600;
    margin-bottom: 40px;
    padding-left: 10px;
    border-left: 4px solid #43602e;
}

.about-stats {
    display: flex;
    gap: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 28px;
    font-weight: 900;
    color: #0d3c13;
    line-height: 1;
    margin-bottom: 5px;
}

.stat-item span {
    font-size: 14px;
    color: #2c3e2b;
    font-weight: 500;
}

.about-hero-image {
    text-align: center;
}

.about-logo {
    max-width: 300px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(13, 60, 19, 0.15);
    border: 8px solid rgba(73, 96, 46, 0.3);
}

/* Миссия */
.about-mission {
    margin-bottom: 20px;
}

.mission-content {
    background: linear-gradient(135deg, rgba(73, 96, 46, 0.1) 0%, rgba(116, 168, 80, 0.2) 100%);
    padding: 35px;
    border-radius: 18px;
    border-left: 6px solid #43602e;
}

.mission-content {
    line-height: 25pt;
}

/* Заголовки секций */
.section-title {
    font-size: 28px;
}

/* Руководство */
.leadership-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.leader-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px 25px;
    text-align: center;
    transition: all 0.4s ease;
    border: 1px solid rgba(73, 96, 46, 0.2);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.leader-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(13, 60, 19, 0.2);
    background: rgba(255, 255, 255, 1);
}

.leader-photo {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.leader-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.leader-card h4 {
    font-size: 20px;
    font-weight: 700;
    color: #0d3c13;
    margin-bottom: 8px;
}

.leader-role {
    font-size: 15px;
    color: #3b5e1b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .about-hero {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .about-stats {
        justify-content: center;
    }

    .leadership-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .about-page {
        padding: 30px 15px;
    }

    .about-hero-text h2.about-title {
        font-size: 28px;
    }

    .about-stats {
        gap: 25px;
    }

    .about-description,
    .mission-content {
        padding: 25px 20px;
    }

    .leader-card {
        padding: 25px 20px;
    }
}

@media (max-width: 480px) {
    .about-stats {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }

    .stat-number {
        font-size: 24px;
    }

    .about-logo {
        max-width: 250px;
    }

    .section-title {
        font-size: 22px;
        padding: 10px 20px;
    }
}

/* Анимация появления */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}





/* Контакты — общий блок */
.contacts-block {
    height: 100%;
    min-height: 600px;
    background-color: #e9eae3;
}

/* Заголовок раздела "Свяжитесь с нами" */
.contacts-title {
    font-size: 32px;
}

/* Карта и контакты рядом */
.contacts-left-right {
    display: flex;
    gap: 40px;
    width: 100%;
    margin-top: 30px;
}

.contacts-map {
    flex: 1 3 500px;
    min-width: 300px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.contacts-map iframe {
    border-radius: 16px;
    border: none;
}

.contacts-info {
    flex: 1 1 500px;
    min-width: 300px;
}

/* Список контактов */
.contacts-list {
    margin-bottom: 10px;
}

/* Карточка контакта */
.contact-card {
    margin-bottom: 15px;
    font-size: 16pt;
    padding: 22px 25px;
    background-color: rgba(73, 96, 46, 0.15);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: background-color 0.3s ease;
}

.contact-card:hover {
    background-color: rgba(73, 96, 46, 0.25);
}

/* Иконка/тип контакта */
.contact-icon {
    flex-shrink: 0;
    font-weight: 600;
    color: #3b5e1b;
    font-size: 14px;
}

.contact-card p {
    font-size: 14px;
    line-height: 1.5;
    color: #2c3e2b;
    margin-bottom: 0;
}

.contact-card p a {
    color: #3b5e1b;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-card p a:hover {
    color: #0d3c13;
}

/* Форма обратной связи */
.contacts-form {
    background-color: rgba(73, 96, 46, 0.12);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.contacts-form h3 {
    font-size: 20px;
    font-weight: 600;
    color: #0d3c13;
    margin-bottom: 8px;
}

.contacts-form p {
    font-size: 14px;
    line-height: 1.5;
    color: #2c3e2b;
    margin-bottom: 15px;
}

/* Форма ввода */
.simple-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.simple-form input,
.simple-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #c3d6b8;
    border-radius: 12px;
    background-color: #ffffff;
    font-size: 14px;
    color: #2c3e2b;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05) inset;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.simple-form input:focus,
.simple-form textarea:focus {
    outline: none;
    border-color: #43602e;
    box-shadow: 0 0 0 3px rgba(67, 96, 46, 0.2);
}

.simple-form textarea {
    resize: vertical;
    min-height: 100px;
}

.simple-form .but:hover {
    background-color: #0d3c13;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(59, 94, 27, 0.4);
}

/* Адаптивность для контактов */

/* Планшет/мобильный: карта сверху, контакты/форма снизу */
@media (max-width: 1024px) {
    .contacts-left-right {
        flex-direction: column;
        gap: 30px;
    }

    .contacts-map {
        flex: none;
        width: 100%;
    }

    .contacts-info {
        flex: none;
        width: 100%;
    }

    .contacts-block {
        min-height: 520px;
    }
}

@media (max-width: 768px) {
    .contacts-left-right {
        gap: 25px;
    }

    .contacts-simple h2.contacts-title {
        font-size: 24px;
    }

    .contacts-form h3 {
        font-size: 20px;
    }

    .contacts-form p {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .contacts-left-right {
        gap: 20px;
    }

    .contacts-block {
        min-height: 480px;
        padding-bottom: 20px;
    }

    .contacts-title {
        font-size: 20px;
        text-align: center;
        display: block;
        width: fit-content;
        margin: 15px auto;
    }

    .contacts-form h3 {
        font-size: 18px;
    }

    .contacts-form p {
        font-size: 13px;
    }

    .simple-form input,
    .simple-form textarea {
        font-size: 14px;
        padding: 10px 12px;
    }

    .simple-form .but {
        padding: 10px 18px;
        font-size: 14px;
    }

    .contact-card p {
        font-size: 14px;
    }
}


/*modal*/
/* Модальное окно — обёртка */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    /* чтобы не было проблем с прокруткой страницы */
    overflow: hidden;
}

/* Основное содержимое модального окна */
.modal-content {
    position: relative;
    width: 100%;
    max-width: 500px;
    max-height: calc(100vh - 5vh); /* 5vh отступ сверху и 5vh снизу */
    /* Если контент большой, разрешаем скролл внутри модалки */
    overflow-y: auto;
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
    padding: 20px;
    box-sizing: border-box;
    /* отступ сверху и снизу за счёт margin */
    margin: 5vh auto;
    /* анимация */
    animation: modalFadeIn 0.3s ease-out;
}

/* Анимация появления */
@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Заголовок модального окна */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.modal-header h3 {
    font-size: 20px;
    font-weight: 600;
    color: #0d3c13;
    margin: 0;
}

/* Кнопка закрытия */
.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    font-weight: 400;
    color: #3b5e1b;
    cursor: pointer;
    padding: 0 5px;
    border-radius: 50%;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #0d3c13;
}

/* Внутренняя форма модального окна */
.modal-content .simple-form {
    margin-bottom: 0;
}

.modal-content .simple-form input,
.modal-content .simple-form textarea,
.modal-content .simple-form select,
.modal-content .simple-form option {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #c3d6b8;
    border-radius: 12px;
    background-color: #ffffff;
    font-size: 14px;
    color: #2c3e2b;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05) inset;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.modal-content .simple-form input:focus,
.modal-content .simple-form textarea:focus {
    outline: none;
    border-color: #43602e;
    box-shadow: 0 0 0 3px rgba(67, 96, 46, 0.2);
}

.modal-content .simple-form textarea {
    resize: vertical;
    min-height: 50px;
}

/* Кнопка "Записаться" */
.modal-content .simple-form .but {
    margin-top: 15px;
    align-self: flex-start;
    background-color: #43602e;
    color: white;
    border: none;
    border-radius: 30px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-content .simple-form .but:hover {
    background-color: #0d3c13;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(59, 94, 27, 0.4);
}

/* Мобильные/планшетные стили */
@media (max-width: 768px) {
    .modal-content {
        max-width: 90vw; /* чуть уже, но более адаптивно */
        max-height: calc(100vh - 10vh);
        margin: 5vh auto;
        padding: 15px;
    }

    .modal-header h3 {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .modal-content {
        max-height: calc(100vh - 8vh);
        margin: 4vh auto;   /* чуть меньше, но всё равно отступы сверху и снизу */
        padding: 16px 12px;
        max-width: 95vw;
    }

    .modal-content .simple-form input,
    .modal-content .simple-form textarea,
    .modal-content .simple-form select {
        font-size: 14px;
        padding: 10px 12px;
    }

    .modal-content .simple-form .but {
        padding: 10px 18px;
        font-size: 14px;
    }
}
/* Общие стили для блоков с карточками */
.about-activities,
.services {
    padding: 48px 40px;
    background-color: rgba(73, 96, 46, 0.12);
    border-radius: 16px;
    margin: 0 auto 40px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    animation: fadeInUp 0.6s ease-out;
    width: 100%;
    max-width: 1300px;
    box-sizing: border-box;
}

.about-activities h2,
.services h2 {
    font-size: clamp(24px, 2.2vw, 32px);
    font-weight: 700;
    color: #0d3c13;
    margin-bottom: 18px;
    text-align: center;
}

.about-activities p,
.services p {
    max-width: 900px;
    margin: 0 auto 14px;
    font-size: 16px;
    line-height: 1.75;
    color: #2c3e2b;
    text-align: left;
}

.services-list {
    max-width: 900px;
    margin: 18px auto 0;
    padding-left: 22px;
}

.services-list li {
    font-size: 15px;
    line-height: 1.6;
    color: #2c3e2b;
    margin-bottom: 10px;
}

/* Кнопки */
.about-activities__link,
.services__button {
    display: block;
    margin: 20px auto 0;
    text-align: center;
    width: fit-content;
}

h2, h3{
    color: rgb(13, 60, 19);
    margin-bottom: 10px;
}
