:root {
    --background: 0 0% 100%;
    --foreground: 240 10% 20%;
    --card: 0 0% 100%;
    --card-foreground: 240 10% 3.9%;
    --popover: 0 0% 100%;
    --popover-foreground: 240 10% 3.9%;
    --primary: 145 63% 30%;
    --primary-foreground: 0 0% 100%;
    --secondary: 145 50% 40%;
    --secondary-foreground: 0 0% 100%;
    --accent: 145 70% 35%;
    --accent-foreground: 0 0% 100%;
    --muted: 145 60% 25%;
    --muted-foreground: 0 0% 80%;
}

.dark {
    --background: 20 14.3% 4.1%;
    --foreground: 0 0% 95%;
    --popover: 0 0% 9%;
    --popover-foreground: 0 0% 95%;
    --card: 24 9.8% 10%;
    --card-foreground: 0 0% 95%;
    --primary: 145 63% 30%;
    --primary-foreground: 0 0% 100%;
    --secondary: 145 50% 40%;
    --secondary-foreground: 0 0% 100%;
    --accent: 145 70% 35%;
    --accent-foreground: 0 0% 100%;
    --muted: 145 60% 25%;
    --muted-foreground: 0 0% 80%;
}

body {
    font-family: "Roboto", sans-serif;
    overflow-x: hidden;
}

.bg-primary {
    background-color: hsl(var(--primary));
}
.text-primary-foreground {
    color: hsl(var(--primary-foreground));
}
.text-accent {
    color: hsl(var(--accent));
}
.text-muted {
    color: #555555;
}

/* Фиксированная боковая панель */
.fixed-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 16rem;
    height: 100vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    z-index: 1000;
    transition: transform 0.3s ease-in-out;
}

.mb-8 {
    text-align: center;
}
.mb-8 img {
    box-shadow: none;
    margin: 0;
    padding: 0;
    border: none;
}

.social-icons {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
}

ul.list-disc,
ul.list-decimal {
    margin-left: 1.5rem;
}
ul.list-inside > li {
    line-height: 1.6;
}

section {
    margin-bottom: 2rem;
}
section p {
    color: #333333;
    line-height: 1.6;
}
section h2,
section h3 {
    color: hsl(var(--accent));
}
h2 {
    margin-bottom: 0.5rem;
}

.bg-gradient-to-b {
    background: linear-gradient(to bottom, #ffffff, #f0fff4, #ffffff);
}

.relative {
    position: relative;
}
.absolute {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    background: rgba(0, 0, 0, 0.5);
}

.object-cover {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.header-lang {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: auto;
    padding: 1rem 0;
}
.lang-item,
.separator {
    margin: 0 8px;
    color: white;
    text-decoration: none;
}
.lang-active {
    font-weight: bold;
    text-decoration: underline;
}

/* Карточки */
.card {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
    text-align: left;
    margin-bottom: 2rem;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}
.card h2 {
    margin-bottom: 1rem;
}
.card p,
.card ul {
    line-height: 1.6;
    margin: 0;
}

/* Команда (Team) */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}
/*
#team .card {
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    margin-bottom: 0;
}
#team .card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    object-position: top;
    border-radius: 8px;
    margin-bottom: 12px;
}
#team .card h3 {
    font-size: 1.1rem;
    margin-bottom: 4px;
} */
.team-section {
    margin-bottom: 32px;
}

.team-section-header {
    margin-bottom: 20px;
}

.team-section-link {
    text-decoration: none;
}

.team-section-title {
    font-size: 30px;
    font-weight: 700;
    color: #1f3d2f;
    margin: 0 0 10px 0;
    text-align: center;
}

.team-section-description {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    color: #4b5563;
    line-height: 1.6;
}

/* .team-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 22px;
} */

.team-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.team-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.team-card-image-wrap {
    width: 100%;
    height: 420px;
    overflow: hidden;
    background: #f3f4f6;
}

.team-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.team-card-body {
    padding: 16px;
    text-align: center;
}

.team-card-name {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 8px 0;
    line-height: 1.35;
    min-height: 48px;
}

.team-card-position {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.5;
    min-height: 42px;
    margin: 0 0 14px 0;
}

.team-card-btn {
    display: inline-block;
    background: #0b8a3a;
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: 999px;
    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.team-card-btn:hover {
    background: #08662a;
    transform: scale(1.03);
}

@media (max-width: 1200px) {
    .team-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

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

    .team-card-image-wrap {
        height: 240px;
    }
}

@media (max-width: 560px) {
    .team-grid {
        grid-template-columns: 1fr;
    }

    .team-card-image-wrap {
        height: 300px;
    }

    .team-section-title {
        font-size: 24px;
    }
}

/* Новости */

.news-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}
.news-item {
    display: flex;
    gap: 20px;
    padding: 18px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    transition: 0.3s ease;
}
.news-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}
.news-image-wrapper {
    width: 250px;
    height: 180px;
    flex-shrink: 0;
    border-radius: 10px;
    overflow: hidden;
}
.news-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.news-item:hover .news-image {
    transform: scale(1.05);
}
.news-details {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.news-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #222;
    margin-bottom: 8px;
}
.news-date {
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 10px;
}
.news-description {
    font-size: 0.95rem;
    color: #444;
    line-height: 1.5;
    margin-bottom: 15px;
    flex-grow: 1;
}
/* контейнер */
.news-container {
    max-width: 1500px;
    margin: auto;
}

/* большая новость */
.news-featured {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.news-featured-image {
    width: 100%;
    height: 320px;
    object-fit: cover;
}

.news-featured-content {
    padding: 20px;
}

.news-featured-title {
    font-size: 26px;
    font-weight: bold;
}

/* карточки */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.news-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s;
}

.news-card:hover {
    transform: translateY(-4px);
}

.news-card-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.news-card-body {
    padding: 15px;
}

.news-card-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 6px;
}

.news-card-text {
    font-size: 14px;
}

/* дата */
.news-date {
    font-size: 13px;
    color: #777;
    margin-bottom: 6px;
}

/* кнопка */
.btn-more {
    display: inline-block;
    margin-top: 10px;
    color: #0b8a3a;
    font-weight: bold;
}

/* кнопка все новости */
.news-all {
    text-align: right;
    margin-top: 25px;
}

.btn-more {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    background: hsl(var(--primary));
    color: white;
    text-decoration: none;
    transition: 0.2s;
    text-align: center;
    border: none;
    cursor: pointer;
    align-self: flex-start;
}
.btn-more:hover {
    background: hsl(var(--primary));
}

/* Section Header */
.section-header {
    display: flex;
    align-items: center;
    border-bottom: 2px solid hsl(var(--accent));
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}
.section-header .material-icons {
    font-size: 1.8rem;
    margin-right: 0.5rem;
}

/* Sidebar Menu */
.sidebar-menu {
    list-style: none;
    margin: 0;
}
.sidebar-menu-item {
    margin-bottom: 0.5rem;
}
.sidebar-menu-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 0.375rem;
    text-decoration: none;
    transition: 0.3s ease;
}
.sidebar-menu-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
}
.sidebar-menu-text {
    margin-left: 0.75rem;
    font-weight: 500;
}

.social-link {
    color: white;
    font-size: 1.25rem;
    transition: 0.3s ease;
}
.social-link:hover {
    opacity: 0.8;
}

/* Кнопка мобильного меню */
.mobile-menu-btn {
    display: none;
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 2000;
    font-size: 24px;
    border: none;
    background: hsl(var(--accent));
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Адаптивность (Мобильная версия) */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    .fixed-nav {
        transform: translateX(-100%);
        width: 260px;
        z-index: 1500;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
        left: 0;
    }
    .fixed-nav.open {
        transform: translateX(0);
    }

    main {
        margin-left: 0 !important;
        padding: 1rem !important;
        padding-top: 70px !important; /* Отступ для кнопки меню */
    }

    .card {
        padding: 1rem;
    }

    /* Адаптация новостей */
    .news-item {
        flex-direction: column;
        gap: 15px;
    }
    .news-image-wrapper {
        width: 100%;
        height: 200px;
    }
    .btn-more {
        width: 100%;
    }

    /* Адаптация команды */
    #team .grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 10px;
    }
    #team .card img {
        height: 160px;
    }
}
