﻿/* =====================
   BASE / RESET
===================== */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f2f4f6;
    color: #222;
}

/* =====================
   CONTAINER
===================== */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 14px;
}

/* =====================
   TYPOGRAPHY
===================== */
h1 {
    margin: 0 0 6px 0;
    font-size: 28px;
}

h2 {
    margin-top: 30px;
    font-size: 22px;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 6px;
}

p {
    line-height: 1.5;
}

/* =====================
   LINKS & BUTTONS
===================== */
a {
    color: #1b5e20;
    text-decoration: none;
}

.btn {
    display: inline-block;
    background: #2e7d32;
    color: #fff !important;
    padding: 10px 16px;
    border-radius: 6px;
    font-weight: bold;
    margin-right: 10px;
    margin-bottom: 10px;
}

.btn.secondary {
    background: #546e7a;
}

.btn:hover {
    background: #1b5e20;
}

/* =====================
   CARDS
===================== */
.card {
    background: #fff;
    padding: 14px 16px;
    margin-bottom: 14px;
    border-radius: 6px;
    border: 1px solid #e2e2e2;
}

/* =====================
   AGGREGATION GRID
===================== */
.aggregate-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.aggregate-grid .card strong {
    display: block;
    margin-bottom: 6px;
}

/* =====================
   FORMS
===================== */
form {
    background: #fff;
    padding: 20px;
    border-radius: 6px;
    border: 1px solid #e2e2e2;
}

label {
    font-weight: bold;
    display: block;
    margin-bottom: 4px;
}

input,
select,
textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 14px;
    border-radius: 4px;
    border: 1px solid #ccc;
    font-size: 15px;
}

textarea {
    min-height: 80px;
}

/* =====================
   MOBILE (DEFAULT)
===================== */
@media (max-width: 768px) {

    .container {
        padding: 10px;
    }

    h1 {
        font-size: 24px;
    }

    h2 {
        font-size: 20px;
    }

    .btn {
        display: block;
        width: 100%;
        text-align: center;
        margin-right: 0;
    }

    .aggregate-grid {
        grid-template-columns: 1fr;
    }
}

/* =====================
   DESKTOP ENHANCEMENTS
===================== */
@media (min-width: 769px) {

    .btn-group {
        margin-bottom: 20px;
    }

    form {
        max-width: 700px;
    }
}

/* ===== CTA: Детальніше ===== */
.btn-details {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 14px;
    background: #ffffff;
    color: #2e7d32;
    border: 2px solid #2e7d32;
    border-radius: 6px;
    font-weight: bold;
    transition: all 0.2s ease;
}

.btn-details:hover {
    background: #2e7d32;
    color: #fff;
}

/* Mobile */
@media (max-width: 768px) {
    .btn-details {
        width: 100%;
        text-align: center;
        padding: 12px;
    }
}

.card {
    transition: all 0.2s ease;
}

.card:hover {
    background: #f9fbf9;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

/* ===== HEADER MENU FIX ===== */
.btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

/* Кнопки в меню */
.btn-group .btn {
    white-space: nowrap;
}

/* Mobile — кнопки в стовпчик */
@media (max-width: 768px) {
    .btn-group {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-group .btn {
        width: 100%;
        text-align: center;
    }
}

/* ===== Колосок як на головному сайті (SVG) ===== */
.ezerno-header-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
}

.ezerno-wheat {
    width: 40px;     /* ← ТОЧНО ЯК У WP */
    height: 40px;
    line-height: 1;
}

/* ===== SVG-іконки в меню (як у WordPress) ===== */
.menu-emoji {
    width: 18px;
    height: 18px;
    vertical-align: middle;
    margin-right: 6px;
}


/* ===== Sticky menu (background = page background) ===== */
.sticky-menu {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 1000;

    background: inherit;
    padding: 8px 0;
    transition: box-shadow 0.2s ease;
}

.sticky-menu.scrolled {
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}


}

/* щоб контент не "прилипав" */
.sticky-menu + hr {
    margin-top: 12px;
}


.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px,1fr));
    gap: 12px;
}

.kpi-card {
    background: #f5faf6;
    padding: 12px;
    border-radius: 10px;
    text-align: center;
    font-weight: 600;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th, .table td {
    border-bottom: 1px solid #ddd;
    padding: 8px;
}

