:root {
    --primary: #0b3d2e;
    --secondary: #16694a;
    --accent: #f4a261;
    --bg: #f0f4f1;
    --text: #1e2923;
    --card-bg: #ffffff;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    line-height: 1.65;
    background-color: var(--bg);
    color: var(--text);
}
header {
    background: rgba(11, 61, 46, 0.96);
    backdrop-filter: blur(8px);
    color: #fff;
    padding: 1.1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0,0,0,0.18);
}
.container {
    width: 92%;
    max-width: 1180px;
    margin: 0 auto;
}
.nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}
.logo {
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
nav ul {
    list-style: none;
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}
nav a {
    color: #d8f3dc;
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.25s ease;
}
nav a:hover, nav a.active {
    background: var(--accent);
    color: #0b3d2e;
}
.hero {
    background: linear-gradient(rgba(11, 61, 46, 0.72), rgba(11, 61, 46, 0.85)),
                url('https://upload.wikimedia.org/wikipedia/commons/2/28/Chocolate_Hills_overview.JPG') center/cover no-repeat;
    color: #fff;
    padding: 5.5rem 0;
    text-align: center;
    border-bottom: 5px solid var(--accent);
    animation: heroFadeIn 1.2s ease-out;
}

@keyframes heroFadeIn {
    from { opacity: 0; transform: scale(1.02); }
    to { opacity: 1; transform: scale(1); }
}
.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.4);
}
.hero p {
    font-size: 1.2rem;
    max-width: 780px;
    margin: 0 auto;
    opacity: 0.95;
}
main { padding: 3rem 0; }
.info-block {
    background: #fff;
    padding: 2.2rem;
    border-radius: 14px;
    margin-bottom: 2.5rem;
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
    border-left: 6px solid var(--secondary);
}
.info-block h2 { color: var(--primary); margin-bottom: 0.8rem; }
.stats-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.2rem;
    margin-bottom: 2.5rem;
}
.stat-item {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(11, 61, 46, 0.2);
}
.stat-item strong { display: block; font-size: 2.1rem; color: var(--accent); }
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
    gap: 2rem;
}
.card {
    background: var(--card-bg);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.07);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    animation: cardFadeInUp 0.6s ease-out both;
    animation-delay: calc(var(--i, 0) * 0.1s);
}

@keyframes cardFadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.card-img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    border-bottom: 3px solid var(--accent);
    transition: transform 0.5s ease;
}

.card:hover .card-img {
    transform: scale(1.08);
}
.card-body {
    padding: 1.6rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.card h3 { color: var(--primary); margin-bottom: 0.6rem; font-size: 1.3rem; }
.card p { color: #44544a; font-size: 0.96rem; flex: 1; }
.badge {
    align-self: flex-start;
    background: #d8f3dc;
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.25rem 0.7rem;
    border-radius: 20px;
    margin-bottom: 0.8rem;
}
.btn {
    display: inline-block;
    margin-top: 1.2rem;
    align-self: flex-start;
    background: var(--secondary);
    color: #fff;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s;
}
.btn:hover { background: var(--primary); }
footer {
    background: #08291f;
    color: #95b8a6;
    text-align: center;
    padding: 2.5rem 0;
    margin-top: 4rem;
    font-size: 0.92rem;
}

/* Плавная прокрутка */
html { scroll-behavior: smooth; }

/* Адаптивная верстка */
@media (max-width: 768px) {
    .hero h1 { font-size: 1.9rem; }
    .hero p { font-size: 1rem; }
    .hero { padding: 3.5rem 0; }
    .grid { grid-template-columns: 1fr; }
    .stats-bar { grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
    .stat-item { padding: 1rem; }
    .stat-item strong { font-size: 1.6rem; }
    .nav-bar { flex-direction: column; text-align: center; }
    nav ul { justify-content: center; }
    .info-block { padding: 1.5rem; }
    .card-img { height: 200px; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.6rem; }
    .stats-bar { grid-template-columns: 1fr; }
    .card-img { height: 180px; }
    .btn { padding: 0.5rem 1rem; font-size: 0.9rem; }
}

/* Уважение к настройкам доступности */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
