/* --- Variables & Reset --- */
:root {
    --primary-color: #485C11;
    --primary-hover: #36460d;
    --bg-color: #f8f9fa;
    --card-bg: #ffffff;
    --text-main: #333333;
    --text-muted: #666666;
    --border-radius: 12px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.5;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* --- Layout --- */
.wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.main {
    flex: 1;
    padding: 2rem 0;
}

/* --- Header --- */
.header {
    background-color: var(--card-bg);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    padding: 1rem 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.logo-text {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary-color);
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
}

.btn-outline {
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
    width: 100%;
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-text {
    color: var(--text-muted);
}

.btn-text:hover { color: var(--text-main); }

/* --- Main Grid --- */
.page-title {
    margin-bottom: 2rem;
    font-size: 2rem;
    color: var(--text-main);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

/* --- Cards --- */
.card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s;
    border: 1px solid #eee;
}

.card:hover {
    transform: translateY(-5px);
}

.card-header {
    margin-bottom: 0.5rem;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.card-price {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.card-meta {
    margin-bottom: 1rem;
}

.badge {
    background-color: #eef2e2;
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: capitalize;
}

.card-body {
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

.card-description {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* --- Service Detail Page --- */
.single-service-container {
    display: flex;
    justify-content: center;
}

.service-full-card {
    background: var(--card-bg);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    max-width: 800px;
    width: 100%;
}

.contact-box {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: #f0fdf4;
    border: 1px solid #dcfce7;
    border-radius: 8px;
}

.contact-label {
    font-weight: 600;
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.5rem;
}

.contact-value {
    font-size: 1.2rem;
    font-weight: 700;
}

/* --- Forms (Create Window) --- */
.modal-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
}

.modal-window {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 500px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-row .form-group {
    flex: 1;
}

.input-field {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.95rem;
    outline: none;
}

.input-field:focus {
    border-color: var(--primary-color);
}

.textarea {
    resize: vertical;
    min-height: 100px;
}

.full-width {
    width: 100%;
    margin-top: 1rem;
}

/* --- Footer --- */
.footer {
    text-align: center;
    padding: 2rem 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: auto;
}

/* --- СТИЛИ ДЛЯ ПАНЕЛИ ФИЛЬТРОВ --- */

.filter-bar {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    border: 1px solid #eee;
    margin-bottom: 30px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap; /* Чтобы на мобильном переносилось */
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    min-width: 160px;
    flex-grow: 1;
}

.filter-label {
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: #444;
}

.filter-select {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.95rem;
    background-color: #fff;
    cursor: pointer;
    transition: border 0.2s;
}

.filter-select:focus {
    outline: none;
    border-color: #485C11; /* Твой зеленый цвет */
}