/* ========================================
 ТАБЛИЦА СТИЛЕЙ (CSS) ДЛЯ САЙТА
 АНО «ЖИВОЙ РОДНИК»
 Версия: 5.0 (новые карточки команды)
 ======================================== */

:root {
 --color-primary: #0F766E;
 --color-primary-light: #14B8A6;
 --color-primary-soft: #CCFBF1;
 --color-primary-dark: #0C5E56;
 --bg-page: #F8FAFC;
 --bg-surface: #FFFFFF;
 --text-primary: #0F172A;
 --text-secondary: #475569;
 --text-muted: #64748B;
 --border-light: #E2E8F0;
 --shadow-sm: 0 2px 8px rgba(0,0,0,0.03);
 --shadow-md: 0 4px 12px rgba(0,0,0,0.04);
 --shadow-lg: 0 8px 24px rgba(0,0,0,0.08);
 --radius-xl: 24px;
 --radius-full: 40px;
 --transition-base: 0.2s ease;
 --transition-slow: 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
 font-family: 'Inter', sans-serif;
 background: var(--bg-page);
 color: var(--text-primary);
 line-height: 1.5;
 transition: background var(--transition-slow), color var(--transition-slow);
 -webkit-font-smoothing: antialiased;
}

body.dark-theme {
 --bg-page: #0B1121;
 --bg-surface: #1E293B;
 --text-primary: #F8FAFC;
 --text-secondary: #E2E8F0;
 --text-muted: #94A3B8;
 --border-light: #334155;
 --color-primary-soft: #134E4A;
}

h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.2; color: var(--text-primary); }
h1 { font-size: 64px; letter-spacing: -0.02em; }
h2 { font-size: 36px; letter-spacing: -0.01em; }
h3 { font-size: 28px; }

p { margin-bottom: 16px; color: var(--text-secondary); }

a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-primary-dark); text-decoration: underline; }
body.dark-theme a { color: var(--color-primary-light); }

.container { max-width: 900px; margin: 0 auto; padding: 40px 24px; }

.card {
 background: var(--bg-surface);
 border-radius: var(--radius-xl);
 padding: 36px;
 box-shadow: var(--shadow-md);
 border: 1px solid var(--border-light);
 margin-bottom: 32px;
}

.admin-bar { background: #0F172A; color: white; padding: 8px 24px; display: flex; justify-content: space-between; align-items: center; font-size: 14px; }
.admin-bar a { color: var(--color-primary-light); margin-left: 20px; font-weight: 500; }

.hero {
 position: relative;
 height: 85vh;
 min-height: 600px;
 background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.5)), url('https://ano-zrodnik.ru/img/RLajGwPmsdw.jpg');
 background-size: cover;
 background-position: center;
 display: flex;
 align-items: center;
 justify-content: center;
 text-align: center;
 color: white;
 margin-bottom: -50px;
}
.hero-content { max-width: 900px; padding: 0 24px; }
.hero-content h1 { color: white; text-shadow: 0 4px 12px rgba(0,0,0,0.3); margin-bottom: 20px; }
.hero-content p { color: rgba(255,255,255,0.95); font-size: 20px; }

.nav-bar {
 background: var(--bg-surface);
 border-bottom: 1px solid var(--border-light);
 padding: 16px 0;
 position: sticky;
 top: 0;
 z-index: 100;
 transition: transform 0.25s cubic-bezier(0.4,0,0.2,1);
}
.nav-bar.hidden { transform: translateY(-100%); }

.nav-container {
 max-width: 1000px;
 margin: 0 auto;
 padding: 0 24px;
 display: flex;
 flex-wrap: wrap;
 justify-content: space-between;
 align-items: center;
 gap: 12px;
}

.nav-logo { font-size: 24px; font-weight: 700; color: var(--color-primary); }
body.dark-theme .nav-logo { color: var(--color-primary-light); }

.nav-links { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.nav-links a {
 padding: 8px 16px;
 border-radius: var(--radius-full);
 font-weight: 500;
 font-size: 15px;
 color: var(--text-secondary);
 white-space: nowrap;
}
.nav-links a:hover { background: var(--color-primary-soft); color: var(--color-primary); }
.nav-links a.active { background: var(--color-primary); color: white; }

.dropdown { position: relative; }
.dropdown-toggle {
 display: flex;
 align-items: center;
 gap: 4px;
 padding: 8px 16px;
 border-radius: var(--radius-full);
 font-weight: 500;
 color: var(--text-secondary);
 cursor: default;
}
.dropdown-toggle:hover { background: var(--color-primary-soft); color: var(--color-primary); }
.dropdown-toggle::after { content: "▼"; font-size: 10px; margin-left: 4px; opacity: 0.6; }

.dropdown-menu {
 display: none;
 position: absolute;
 top: calc(100% + 5px);
 left: 0;
 background: var(--bg-surface);
 border-radius: 16px;
 box-shadow: 0 20px 40px -12px rgba(0,0,0,0.12);
 border: 1px solid var(--border-light);
 min-width: 160px;
 padding: 8px 0;
 z-index: 200;
}
.dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a {
 display: block;
 padding: 10px 20px;
 color: var(--text-secondary) !important;
 font-weight: 500;
 white-space: nowrap;
}
.dropdown-menu a:hover { background: var(--color-primary-soft) !important; color: var(--color-primary) !important; }

.theme-btn {
 background: var(--bg-page);
 border: 1px solid var(--border-light);
 padding: 8px 16px;
 border-radius: var(--radius-full);
 cursor: pointer;
 font-size: 14px;
 font-weight: 500;
 color: var(--text-secondary);
 margin-left: 8px;
}

.section-title { font-size: 28px; font-weight: 700; margin-bottom: 28px; display: flex; align-items: center; }
.section-title span { width: 4px; height: 28px; background: var(--color-primary); margin-right: 16px; border-radius: 4px; }

/* ========================================
 НОВЫЕ КАРТОЧКИ КОМАНДЫ
 ======================================== */
.team-grid-new {
 display: grid;
 grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
 gap: 30px;
 margin-top: 20px;
 margin-bottom: 20px;
}

.team-member-new {
 background: white;
 border-radius: 24px;
 overflow: hidden;
 box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
 border: 1px solid #E2E8F0;
 transition: all 0.3s ease;
}

.team-member-new:hover {
 transform: translateY(-6px);
 box-shadow: 0 20px 30px -8px rgba(15, 118, 110, 0.12);
 border-color: #0F766E;
}

body.dark-theme .team-member-new {
 background: #1E293B;
 border-color: #334155;
 box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

body.dark-theme .team-member-new:hover {
 border-color: #14B8A6;
 box-shadow: 0 20px 30px -8px rgba(20, 184, 166, 0.15);
}

.team-member-photo {
 width: 100%;
 aspect-ratio: 1 / 1;
 overflow: hidden;
 background: linear-gradient(135deg, #CCFBF1 0%, #99F6E4 100%);
}

body.dark-theme .team-member-photo {
 background: linear-gradient(135deg, #134E4A 0%, #0F766E 100%);
}

.team-member-photo img {
 width: 100%;
 height: 100%;
 object-fit: cover;
 display: block;
 transition: transform 0.4s ease;
}

.team-member-new:hover .team-member-photo img {
 transform: scale(1.03);
}

.team-member-content {
 padding: 24px 22px 28px;
}

.team-member-name {
 font-size: 22px;
 font-weight: 700;
 margin-bottom: 6px;
 color: #0F172A;
 line-height: 1.3;
}

body.dark-theme .team-member-name {
 color: #F8FAFC;
}

.team-member-role {
 display: inline-block;
 color: #0F766E;
 font-weight: 600;
 font-size: 13px;
 margin-bottom: 14px;
 text-transform: uppercase;
 letter-spacing: 0.6px;
 padding-bottom: 4px;
 border-bottom: 2px solid #0F766E;
}

body.dark-theme .team-member-role {
 color: #14B8A6;
 border-bottom-color: #14B8A6;
}

.team-member-bio {
 color: #475569;
 font-size: 15px;
 line-height: 1.7;
 margin: 0;
}

body.dark-theme .team-member-bio {
 color: #94A3B8;
}

/* Подвал */
.site-footer { background: var(--bg-surface); border-top: 1px solid var(--border-light); padding: 32px 24px; margin-top: 40px; }
.footer-container { max-width: 900px; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; }
.footer-copyright { color: var(--text-muted); font-size: 14px; }
.footer-contacts { display: flex; flex-wrap: wrap; gap: 28px; }
.footer-contact-item { color: var(--text-secondary); font-size: 14px; }
.footer-contact-item a { color: var(--color-primary); font-weight: 500; margin-left: 6px; }
.footer-powered { margin-top: 20px; text-align: center; color: var(--text-muted); font-size: 12px; }

/* Адаптивность */
@media (max-width: 700px) {
 .hero-content h1 { font-size: 42px; }
 .nav-container { flex-direction: column; align-items: flex-start; }
 .nav-links { width: 100%; }
 .dropdown-menu { position: static; box-shadow: none; border: none; background: transparent; padding-left: 20px; }
 .dropdown-toggle::after { display: none; }
 .card { padding: 24px; }
 .footer-container { flex-direction: column; text-align: center; }
 .footer-contacts { flex-direction: column; gap: 12px; align-items: center; }
 .team-grid-new { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
 .team-member-content { padding: 20px 18px 24px; }
 .team-member-name { font-size: 20px; }
}

@media (max-width: 480px) {
 h1 { font-size: 36px; }
 h2 { font-size: 28px; }
 .container { padding: 24px 16px; }
 .team-grid-new { grid-template-columns: 1fr; }
}