@charset "UTF-8";

:root {
    --bg-dark: #0B131E;
    --bg-dark-elevated: #131F30;
    --bg-light: #F7F6F2;
    --surface: #FFFFFF;
    --accent: #B08D57;
    --accent-hover: #C5A065;
    --text-main: #18202C;
    --text-muted: #5A6577;
    --text-light: #E2E8F0;
    --border-light: #E5E2DC;
    --border-dark: rgba(255, 255, 255, 0.12);
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font-sans);
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

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

.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(11, 19, 30, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-dark);
    padding: 16px 0;
}
.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}
.brand {
    text-decoration: none;
    display: flex;
    flex-direction: column;
}
.brand-title {
    font-family: var(--font-serif);
    color: #fff;
    font-size: 19px;
    font-weight: 600;
    letter-spacing: 0.5px;
}
.brand-sub {
    font-size: 10px;
    letter-spacing: 2.2px;
    color: var(--accent);
    margin-top: 2px;
}
.nav-links {
    display: flex;
    gap: 32px;
}
.nav-links a {
    color: #CBD5E1;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--accent); }
.nav-phone {
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    border: 1px solid rgba(176, 141, 87, 0.45);
    padding: 8px 16px;
    border-radius: 4px;
    transition: all 0.2s;
}
.nav-phone:hover {
    background: var(--accent);
    color: var(--bg-dark);
}

.hero {
    background: radial-gradient(circle at top right, #17263B 0%, var(--bg-dark) 65%);
    color: #fff;
    padding: 80px 0 90px;
    border-bottom: 1px solid var(--border-dark);
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.85fr;
    gap: 50px;
    align-items: center;
}
.eyebrow {
    display: inline-block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    color: var(--accent);
    margin-bottom: 20px;
    font-weight: 500;
}
.hero h1 {
    font-family: var(--font-serif);
    font-size: clamp(34px, 4.2vw, 52px);
    line-height: 1.15;
    font-weight: 600;
    margin: 0 0 24px 0;
    color: #FFFFFF;
}
.hero-lead {
    font-size: 17px;
    color: #CBD5E1;
    line-height: 1.7;
    margin: 0 0 36px 0;
    max-width: 580px;
    font-weight: 300;
}
.hero-lead strong { color: #fff; font-weight: 500; }
.hero-cta-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.btn-primary {
    background: var(--accent);
    color: var(--bg-dark);
    text-decoration: none;
    padding: 15px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.25s ease;
    display: inline-block;
}
.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}
.btn-outline {
    background: transparent;
    color: #fff;
    text-decoration: none;
    padding: 15px 26px;
    font-size: 15px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 4px;
    transition: all 0.25s ease;
}
.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.hero-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(176, 141, 87, 0.35);
    border-radius: 8px;
    padding: 32px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.45);
}
.hero-card-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent);
    margin-bottom: 8px;
}
.hero-card-name {
    font-family: var(--font-serif);
    font-size: 24px;
    color: #fff;
    line-height: 1.3;
}
.hero-card-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.12);
    margin: 20px 0;
}
.hero-card-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}
.hero-card-list li {
    display: flex;
    flex-direction: column;
    margin-bottom: 14px;
    font-size: 14px;
}
.hero-card-list li span {
    color: #94A3B8;
    font-size: 12px;
}
.hero-card-list li strong {
    color: #F8FAFC;
    font-weight: 500;
    margin-top: 2px;
}
.hero-card-note {
    font-size: 12px;
    color: #94A3B8;
    line-height: 1.55;
    margin: 0;
    padding-top: 14px;
    border-top: 1px dashed rgba(255, 255, 255, 0.12);
}

.section-practice, .section-articles { padding: 80px 0; }
.section-articles { padding-top: 20px; }
.section-header { margin-bottom: 44px; }
.section-tag {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 8px;
}
.section-header h2 {
    font-family: var(--font-serif);
    font-size: clamp(28px, 3vw, 38px);
    color: var(--text-main);
    margin: 0;
    font-weight: 600;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.bento-item {
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    padding: 32px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.bento-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(11, 19, 30, 0.06);
    border-color: var(--accent);
}
.bento-num {
    font-family: var(--font-serif);
    font-size: 16px;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 16px;
}
.bento-item h3 {
    font-family: var(--font-serif);
    font-size: 22px;
    margin: 0 0 12px 0;
    color: var(--text-main);
}
.bento-item p {
    margin: 0;
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.65;
}

.articles-modern-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}
.post-card {
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 35px rgba(11, 19, 30, 0.07);
}
.post-img-wrap {
    display: block;
    height: 240px;
    overflow: hidden;
    background: var(--bg-dark);
    text-decoration: none;
}
.post-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.post-card:hover .post-img-wrap img { transform: scale(1.04); }
.post-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0B131E 0%, #1B2B42 100%);
    color: var(--accent);
    font-family: var(--font-serif);
    font-size: 20px;
    letter-spacing: 1px;
}
.post-content {
    padding: 28px 32px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.post-meta {
    font-size: 12px;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    margin-bottom: 10px;
}
.post-content h3 {
    font-family: var(--font-serif);
    font-size: 23px;
    line-height: 1.3;
    margin: 0 0 14px 0;
}
.post-content h3 a {
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.2s;
}
.post-content h3 a:hover { color: var(--accent); }
.post-content p {
    font-size: 15px;
    color: var(--text-muted);
    margin: 0 0 24px 0;
    flex: 1;
}
.post-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.2s;
}
.post-link span {
    color: var(--accent);
    transition: transform 0.2s;
}
.post-link:hover { color: var(--accent); }
.post-link:hover span { transform: translateX(4px); }

.empty-state {
    background: var(--surface);
    border: 1px solid var(--border-light);
    padding: 40px;
    border-radius: 6px;
    text-align: center;
    color: var(--text-muted);
}

.article-container { max-width: 880px; padding-top: 30px; }
.breadcrumbs {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
}
.breadcrumbs a { color: var(--text-main); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs span { margin: 0 6px; }
.card {
    background: var(--surface);
    padding: 40px;
    margin-bottom: 30px;
    border-radius: 6px;
    border: 1px solid var(--border-light);
}
.full-article h1 {
    font-family: var(--font-serif);
    font-size: clamp(26px, 3.5vw, 38px);
    line-height: 1.25;
    margin: 10px 0 24px 0;
    color: var(--text-main);
}
.full-article-img {
    width: 100%;
    max-height: 460px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 28px;
}
.article-body {
    font-size: 17px;
    line-height: 1.8;
    color: #222;
}
.article-body h2, .article-body h3 {
    font-family: var(--font-serif);
    margin-top: 32px;
    margin-bottom: 12px;
    color: var(--text-main);
}
.article-body blockquote {
    border-left: 3px solid var(--accent);
    margin: 24px 0;
    padding: 12px 24px;
    background: var(--bg-light);
    font-style: italic;
}
.article-cta {
    margin-top: 45px;
    padding: 32px;
    background: var(--bg-light);
    border-left: 4px solid var(--accent);
    border-radius: 4px;
}
.article-cta h3 {
    font-family: var(--font-serif);
    font-size: 22px;
    margin: 0 0 10px 0;
}
.article-cta p {
    margin: 0 0 20px 0;
    color: var(--text-muted);
    font-size: 15px;
}
.cta-buttons {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.contact-link-dark {
color: var(--text-main);
font-weight: 600;
font-size: 14px;
text-decoration: none;
border-bottom: 1px solid var(--accent);
padding-bottom: 2px;
}
.contact-link-dark:hover { color: var(--accent); }
.footer {
background: var(--bg-dark);
color: #94A3B8;
padding: 60px 0 30px;
margin-top: 60px;
border-top: 3px solid var(--accent);
}
.footer-grid {
display: flex;
justify-content: space-between;
align-items: flex-start;
gap: 40px;
flex-wrap: wrap;
padding-bottom: 40px;
border-bottom: 1px solid var(--border-dark);
}
.footer-brand {
font-family: var(--font-serif);
font-size: 22px;
color: #fff;
margin-bottom: 12px;
}
.footer-desc { font-size: 14px; line-height: 1.6; margin: 0; }
.footer-contacts {
display: flex;
flex-direction: column;
align-items: flex-end;
gap: 8px;
}
.footer-phone { font-size: 22px; font-weight: 600; color: #fff; text-decoration: none; }
.footer-email { color: var(--accent); text-decoration: none; font-size: 15px; }
.footer-messengers { margin-top: 6px; font-size: 14px; }
.footer-messengers a { color: #CBD5E1; text-decoration: none; }
.footer-messengers a:hover { color: var(--accent); }
.footer-bottom {
padding-top: 24px;
display: flex;
justify-content: space-between;
flex-wrap: wrap;
gap: 12px;
font-size: 12px;
color: #64748B;
}
.login-box { max-width: 420px; margin: 80px auto; text-align: center; }
.alert-success { background: #DCFCE7; color: #166534; padding: 14px; border-radius: 4px; margin-bottom: 20px; }
label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
input[type="text"], input[type="password"], input[type="file"], textarea {
width: 100%;
padding: 12px;
margin-bottom: 16px;
border: 1px solid #CBD5E1;
border-radius: 4px;
font-family: inherit;
font-size: 14px;
}
button {
background: var(--bg-dark);
color: #fff;
border: none;
padding: 13px 26px;
border-radius: 4px;
cursor: pointer;
font-weight: 500;
font-size: 14px;
}
button:hover { background: #1E293B; }
.seo-box { background: #F8FAFC; padding: 16px; border: 1px solid #E2E8F0; border-radius: 4px; }
.admin-header, .admin-item { display: flex; justify-content: space-between; align-items: center; gap: 15px; flex-wrap: wrap; margin-bottom: 20px; }
.admin-actions { display: flex; gap: 15px; font-size: 14px; }
.btn-link { color: var(--text-main); text-decoration: none; border-bottom: 1px solid #CBD5E1; }
.edit-btn { color: #0284C7; text-decoration: none; }
.delete-btn { color: #DC2626; text-decoration: none; }
@media (max-width: 960px) {
.hero-grid { grid-template-columns: 1fr; }
.bento-grid { grid-template-columns: 1fr; }
.articles-modern-grid { grid-template-columns: 1fr; }
.nav-links { display: none; }
.footer-contacts { align-items: flex-start; }
.card { padding: 24px; }
}

---

### 6. Файл `sitemap.php`
```php
<?php
require 'db.php';
header("Content-Type: application/xml; charset=utf-8");

$articles = $db->query("SELECT slug, created_at FROM articles ORDER BY id DESC")->fetchAll(PDO::FETCH_ASSOC);

echo '<?xml version="1.0" encoding="UTF-8"?>';
?>
<urlset xmlns="http://sitemaps.org">
    <url>
        <loc><?= SITE_URL ?>/</loc>
        <changefreq>weekly</changefreq>
        <priority>1.0</priority>
    </url>
    <?php foreach ($articles as $article): ?>
    <url>
        <loc><?= SITE_URL ?>/article.php?slug=<?= urlencode($article['slug']) ?></loc>
        <lastmod><?= date('Y-m-d', strtotime($article['created_at'])) ?></lastmod>
        <changefreq>monthly</changefreq>
        <priority>0.8</priority>
    </url>
    <?php endforeach; ?>
</urlset>
