:root {
    --bg-light: #F8F7F4;
    --bg-white: #FFFFFF;
    --brown-soft: #8B5E3C;
    --beige: #E8DCCB;
    --green-soft: #8FAF8F;
    --text-main: #222222;
    --text-sec: #6B6B6B;
    --accent: #C78F5A;
    --border-color: #EAE6DF;
    
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.06);
    --shadow-lg: 0 16px 48px rgba(0,0,0,0.08);
    
    --radius: 16px;
    --radius-lg: 24px;
    --transition: 0.3s ease;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; border-radius: var(--radius); }

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

/* Typography */
h1, h2, h3, h4 { font-weight: 600; line-height: 1.2; letter-spacing: -0.02em; }
h1 { font-size: 3.5rem; margin-bottom: 1.5rem; }
h2 { font-size: 2.5rem; margin-bottom: 1rem; }
.highlight { color: var(--brown-soft); }
.text-center { text-align: center; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    transition: var(--transition);
    text-align: center;
}
.btn-primary { background: var(--brown-soft); color: var(--bg-white); }
.btn-primary:hover { background: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline { border: 1px solid var(--border-color); background: var(--bg-white); color: var(--text-main); }
.btn-outline:hover { border-color: var(--brown-soft); color: var(--brown-soft); }
.btn-text { background: transparent; color: var(--text-sec); padding: 14px 16px; }
.btn-text:hover { color: var(--text-main); }

/* Header */
.main-header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.header-container { display: flex; justify-content: space-between; align-items: center; height: 80px; }
.logo-text { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.03em; }
.main-nav ul { display: flex; gap: 24px; align-items: center; }
.main-nav a { font-weight: 500; color: var(--text-sec); }
.main-nav a:hover { color: var(--text-main); }
.main-nav a.btn { color: inherit; }

/* Sections */
.section { padding: 100px 0; }
.section-title { text-align: center; margin-bottom: 64px; }
.section-title h2 { font-size: 2.5rem; }
.section-title p { color: var(--text-sec); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

/* Grid */
.grid { display: grid; gap: 32px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

/* Cards */
.card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-img { height: 200px; object-fit: cover; border-radius: var(--radius); margin-bottom: 24px; width: 100%; }

/* Forms */
.form-container { max-width: 600px; margin: 0 auto; background: var(--bg-white); padding: 48px; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); border: 1px solid var(--border-color); }
.form-group { margin-bottom: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 500; color: var(--text-main); font-size: 0.9rem; }
.form-control {
    width: 100%;
    padding: 16px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    background: var(--bg-light);
    transition: var(--transition);
}
.form-control:focus { outline: none; border-color: var(--brown-soft); background: var(--bg-white); box-shadow: 0 0 0 4px rgba(139, 94, 60, 0.1); }
select.form-control { appearance: none; background-image: url('data:image/svg+xml;utf8,<svg fill="none" stroke="%23222222" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 9l-7 7-7-7"></path></svg>'); background-repeat: no-repeat; background-position: right 16px center; background-size: 16px; }

/* Alerts */
.alert { padding: 16px 24px; border-radius: 12px; margin-bottom: 24px; font-weight: 500; }
.alert-success { background: #E8F5E9; color: #2E7D32; border: 1px solid #C8E6C9; }
.alert-error { background: #FFEBEE; color: #C62828; border: 1px solid #FFCDD2; }

/* Client Area Layout */
.client-layout { display: flex; gap: 40px; margin-top: 40px; }
.client-sidebar { width: 280px; flex-shrink: 0; }
.client-content { flex: 1; }
.client-nav { background: var(--bg-white); border-radius: var(--radius-lg); padding: 16px; border: 1px solid var(--border-color); }
.client-nav a { display: block; padding: 12px 16px; border-radius: 8px; color: var(--text-sec); font-weight: 500; margin-bottom: 4px; }
.client-nav a:hover, .client-nav a.active { background: var(--bg-light); color: var(--brown-soft); }

/* Footer */
.main-footer { background: var(--bg-white); padding: 80px 0 40px 0; border-top: 1px solid var(--border-color); margin-top: 80px; }
.footer-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; margin-bottom: 60px; }
.footer-bottom { text-align: center; padding-top: 24px; border-top: 1px solid var(--border-color); color: var(--text-sec); font-size: 0.9rem; }

/* Utilities */
.mb-4 { margin-bottom: 24px; }
.mt-4 { margin-top: 24px; }
.d-flex { display: flex; }
.justify-between { justify-content: space-between; }
.align-center { align-items: center; }
.gap-2 { gap: 16px; }

/* Responsive */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    .client-layout { flex-direction: column; }
    .client-sidebar { width: 100%; }
    .form-row { grid-template-columns: 1fr; }
}
