/* ══════════════════════════════════════════
   ЗКС (ИКС) v11 — багатосторінковий сайт
   Базові стилі (v9-bloom: зелений, квітучий)
   Шрифти: Merriweather + Nunito
   ══════════════════════════════════════════ */

:root {
    --primary: #1e4620;
    --accent: #4caf50;
    --accent-bright: #66bb6a;
    --accent-warm: #f9a825;
    --text: #2e3b2e;
    --muted: #5c7a5c;
    --light: #f0f7ee;
    --white: #ffffff;
    --card-bg: #fcfff9;
    --border: #d4e8d0;
}

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

body {
    font-family: 'Nunito', sans-serif;
    line-height: 1.7;
    color: var(--text);
    background: var(--white);
}

h1, h2, h3, h4 {
    font-family: 'Merriweather', serif;
    color: var(--primary);
}

h2 { font-size: 2rem; margin-bottom: 1rem; }
h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-warm); }

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

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

/* ── Навігація ── */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}
nav .logo {
    font-size: 1.8rem;
    font-family: 'Merriweather', serif;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 3px;
    text-decoration: none;
}
nav ul {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 2rem;
}
nav ul li a {
    color: var(--muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s;
}
nav ul li a:hover,
nav ul li a.active {
    color: var(--accent);
}

/* ── Hero (головна) ── */
.hero-page {
    min-height: 85vh;
    background: linear-gradient(160deg, rgba(30,70,32,0.12) 0%, rgba(76,175,80,0.06) 40%, rgba(249,168,37,0.04) 100%),
                url('https://images.unsplash.com/photo-1502082553048-f009c37129b9?auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
}
.hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 10%;
}
.hero-content .pre {
    font-family: 'Merriweather', serif;
    font-style: italic;
    font-weight: 700;
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 1px 8px rgba(0,0,0,0.2);
}
.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: #fff;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
    max-width: 700px;
}
.hero-content .tagline {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.9);
    max-width: 600px;
    margin-bottom: 2.5rem;
    font-weight: 500;
    text-shadow: 0 1px 10px rgba(0,0,0,0.2);
}

/* ── Page Hero (внутрішні сторінки) ── */
.page-hero {
    background: linear-gradient(135deg, var(--light) 0%, #fffde7 100%);
    padding: 5rem 2rem;
    text-align: center;
    border-bottom: 1px solid var(--border);
}
.page-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}
.page-hero p {
    color: var(--muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ── Кнопки ── */
.btn {
    display: inline-block;
    background: var(--accent-bright);
    color: #fff;
    padding: 1rem 3rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    transition: 0.3s;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 25px rgba(76,175,80,0.35);
    border: none;
    cursor: pointer;
}
.btn:hover {
    background: #43a047;
    transform: translateY(-3px);
    box-shadow: 0 8px 35px rgba(76,175,80,0.45);
    color: #fff;
}
.btn-outline {
    display: inline-block;
    border: 2px solid var(--accent);
    color: var(--accent);
    padding: 0.8rem 2.5rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: 0.3s;
}
.btn-outline:hover {
    background: var(--accent);
    color: #fff;
}

/* ── Картки (3-колонки) ── */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}
.card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 24px;
    border: 1px solid var(--border);
    transition: 0.3s;
    box-shadow: 0 4px 20px rgba(30,70,32,0.04);
}
.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 35px rgba(30,70,32,0.1);
    border-color: var(--accent);
}
.card .num {
    font-family: 'Merriweather', serif;
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
}
.card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.3rem;
}
.card .sub {
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}
.card p {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ── Блоки 2×2 ── */
.blocks-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}
.block-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border);
}
.block-card .num {
    display: inline-block;
    width: 40px; height: 40px;
    line-height: 40px;
    text-align: center;
    background: var(--accent);
    color: #fff;
    border-radius: 50%;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 1rem;
}
.block-card h4 {
    margin-bottom: 0.5rem;
}
.block-card p {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ── Сфери (4 колонки) ── */
.areas-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}
.area-item {
    text-align: center;
    padding: 2rem 1rem;
    background: var(--card-bg);
    border-radius: 16px;
    border: 1px solid var(--border);
}
.area-item .icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}
.area-item h4 {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}
.area-item ul {
    list-style: none;
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.6;
}

/* ── Відгуки ── */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}
.review-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    font-style: italic;
}
.review-card p {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.8;
}
.review-card .author {
    font-style: normal;
    font-weight: 600;
    color: var(--primary);
    margin-top: 1rem;
}

/* ── About (біографія) ── */
.about-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    align-items: start;
    margin-top: 2rem;
}
.about-layout p {
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.9;
}
.timeline-item {
    padding: 1.2rem 0;
    border-bottom: 1px solid var(--border);
}
.timeline-item:last-child { border-bottom: none; }
.timeline-item .year {
    font-weight: 700;
    color: var(--accent);
    font-size: 0.85rem;
    margin-bottom: 0.2rem;
}
.timeline-item p {
    font-size: 0.95rem;
    color: var(--muted);
    line-height: 1.6;
}

/* ── Контакти ── */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}
.contact-card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 24px;
    border: 1px solid var(--border);
    text-align: center;
}
.contact-card .phone {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin: 1rem 0;
}
.contact-card .icon-row {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}
.contact-form {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 24px;
    border: 1px solid var(--border);
}
.contact-form label {
    display: block;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.3rem;
    margin-top: 1.2rem;
    font-size: 0.9rem;
}
.contact-form label:first-child { margin-top: 0; }
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-family: 'Nunito', sans-serif;
    font-size: 0.95rem;
    color: var(--text);
    transition: border-color 0.3s;
}
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent);
}
.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}
.contact-form .btn { margin-top: 1.5rem; width: 100%; }

/* ── CTA ── */
.cta {
    text-align: center;
    padding: 5rem 2rem;
    background: linear-gradient(135deg, #e8f5e9 0%, #fffde7 100%);
    border-top: 1px solid var(--border);
}
.cta h2 { margin-bottom: 1rem; }
.cta p {
    color: var(--muted);
    font-size: 1.1rem;
    margin: 1.5rem 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ── Роздільники ── */
.bg-light { background-color: var(--light); }
.divider { border-top: 1px solid var(--border); }

/* ── Footer ── */
footer {
    background: var(--primary);
    color: rgba(255,255,255,0.8);
    text-align: center;
    padding: 2.5rem;
    font-size: 0.9rem;
    line-height: 1.6;
}
footer a {
    color: var(--accent-bright);
    text-decoration: none;
}

/* ── Хлібні крихти ── */
.breadcrumb {
    font-size: 0.85rem;
    color: var(--muted);
    padding: 1.5rem 2rem;
    max-width: 1100px;
    margin: 0 auto;
}
.breadcrumb a { color: var(--accent); }

/* ── Мобільна адаптація ── */
@media (max-width: 768px) {
    .hero-content h1 { font-size: 2.2rem; }
    .cards-grid,
    .blocks-grid,
    .reviews-grid { grid-template-columns: 1fr; }
    .areas-grid { grid-template-columns: repeat(2, 1fr); }
    .about-layout,
    .contact-layout { grid-template-columns: 1fr; }
    nav ul { display: none; }
}
