/* desirium.net — городской каталог-портал, дизайн Z, 2005–2012 */
/* палитра: серо-бежевая, плашки, таблицы */

* { margin: 0; padding: 0; box-sizing: border-box; }

html { background: #d9d2c5; }

body {
  font-family: Verdana, Tahoma, Arial, sans-serif;
  font-size: 13px;
  color: #3a352c;
  background: #d9d2c5 url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='4' height='4'><rect width='4' height='4' fill='%23d9d2c5'/><rect width='1' height='1' fill='%23cfc7b7'/></svg>") repeat;
  line-height: 1.45;
}

a { color: #6b4f1d; text-decoration: underline; }
a:hover { color: #a86f1a; text-decoration: none; }
a:visited { color: #7a5a2a; }

img { border: 0; }

.wrapper {
  width: 940px;
  margin: 12px auto 20px auto;
  background: #fbf8f1;
  border: 1px solid #b8ae9a;
  box-shadow: 0 2px 6px rgba(60,50,30,0.25);
}

/* ============ HEADER ============ */
.header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 10px 14px 8px 14px;
  background: #cfc5b2;
  background: linear-gradient(to bottom, #e8e0cf 0%, #cfc5b2 100%);
  border-bottom: 3px solid #8a7a56;
}
.header-top { display: flex; justify-content: space-between; align-items: center; }
.header-left { }
.header-right { text-align: right; min-width: 200px; }

.logo { font-size: 26px; font-weight: bold; font-family: Georgia, "Times New Roman", serif; color: #5b4215; letter-spacing: 0.5px; }
.logo a { color: #5b4215; text-decoration: none; }
.logo a:hover { color: #8a6a20; }
.tm { font-size: 12px; color: #8a7a56; vertical-align: super; font-weight: normal; }
.sitename { font-size: 20px; font-weight: bold; color: #5b4215; }

.slogan { font-size: 11px; color: #6f644d; margin-top: 3px; font-style: italic; }

.today, .date { font-size: 11px; color: #4a4232; margin-bottom: 5px; }
.today span, .date span { font-weight: bold; color: #6b4f1d; }

.counter { display: inline-block; vertical-align: middle; width: 88px; height: 31px; margin-top: 4px; }

/* ============ NAV ============ */
.mainnav, .nav {
  padding: 6px 14px;
  background: #b8ae9a;
  background: linear-gradient(to bottom, #c6bca5 0%, #a89e88 100%);
  border-bottom: 1px solid #8a7a56;
  font-size: 12px;
  color: #4a4232;
}
.mainnav a, .nav a {
  color: #3a2f15;
  text-decoration: none;
  font-weight: bold;
  padding: 2px 3px;
}
.mainnav a:hover, .nav a:hover { color: #fff8e0; text-decoration: underline; }
.sep { color: #7a6f56; padding: 0 3px; }

/* ============ LAYOUT ============ */
.container, .layout, .wrap {
  display: flex;
  align-items: flex-start;
  padding: 12px;
  gap: 14px;
}
.main-col, .main {
  flex: 1 1 auto;
  min-width: 0;
}
.sidebar {
  flex: 0 0 250px;
  width: 250px;
}

.clear { clear: both; }
.center { text-align: center; }
.right { text-align: right; }
.small { font-size: 11px; color: #6f644d; }

/* ============ INTRO ============ */
.intro-box, .intro {
  background: #fffbe6;
  border: 1px solid #e0d080;
  padding: 10px 12px;
  font-size: 12px;
  line-height: 1.5;
  color: #4a3f1f;
  margin-bottom: 14px;
}
.intro-box b, .intro b { color: #7a5a10; }

/* ============ H1 ============ */
h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  color: #5b4215;
  margin: 4px 0 14px 0;
  font-weight: bold;
  border-bottom: 2px solid #d6cdb8;
  padding-bottom: 6px;
}

h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  color: #5b4215;
  margin: 14px 0 8px 0;
}

h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
  color: #6b4f1d;
  margin: 12px 0 6px 0;
}

/* ============ SECTION TITLE ============ */
.section-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  font-weight: bold;
  color: #5b4215;
  background: linear-gradient(to bottom, #ede5d2 0%, #d9d0bd 100%);
  border: 1px solid #b8ae9a;
  border-left: 4px solid #8a7a56;
  padding: 5px 10px;
  margin: 16px 0 10px 0;
}

/* ============ POST PREVIEW ============ */
.post-preview {
  background: #fff;
  border: 1px solid #cfc7b7;
  padding: 10px 12px;
  margin-bottom: 12px;
}
.post-preview.money {
  background: #fefaf0;
  border: 1px solid #d8c98a;
  border-left: 4px solid #c9a94a;
}
.preview-date, .post-meta, .post-date {
  font-size: 11px;
  color: #8a7a56;
  margin-bottom: 4px;
}
.preview-title, .post-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  font-weight: bold;
  margin: 0 0 6px 0;
  line-height: 1.3;
}
.preview-title a, .post-title a { color: #6b4f1d; text-decoration: none; }
.preview-title a:hover, .post-title a:hover { color: #a86f1a; text-decoration: underline; }
.preview-text, .post-announce { font-size: 12px; line-height: 1.5; color: #3a352c; }
.preview-text p, .post-announce p { margin-bottom: 6px; }
.preview-meta, .post-footer {
  font-size: 11px;
  color: #6f644d;
  margin-top: 6px;
  border-top: 1px dotted #cfc7b7;
  padding-top: 5px;
}
.post-footer a { color: #8a5a1a; }

/* ============ POST FULL ============ */
.post-full {
  background: #fff;
  border: 1px solid #cfc7b7;
  padding: 14px 16px;
  margin-bottom: 14px;
}
.post-full p { margin-bottom: 10px; line-height: 1.55; }
.post-full h2 { margin-top: 16px; }
.post-author {
  font-size: 11px;
  color: #6f644d;
  background: #f4efe2;
  border: 1px solid #e0d8c4;
  padding: 4px 8px;
  margin: 10px 0;
}
.post-tags, .entry-tags {
  font-size: 11px;
  margin: 10px 0;
  padding: 6px 0;
  border-top: 1px dotted #cfc7b7;
  border-bottom: 1px dotted #cfc7b7;
}
.post-tags a, .entry-tags a {
  display: inline-block;
  background: #ede5d2;
  border: 1px solid #c9bfa8;
  padding: 1px 6px;
  margin: 0 4px 3px 0;
  color: #6b4f1d;
  text-decoration: none;
  font-size: 11px;
}
.post-tags a:hover, .entry-tags a:hover { background: #d9d0bd; }

/* ============ PAGINATION ============ */
.pagination {
  text-align: center;
  padding: 10px;
  background: #f4efe2;
  border: 1px solid #d6cdb8;
  margin: 14px 0;
  font-size: 12px;
  color: #6f644d;
}
.pagination a { color: #6b4f1d; font-weight: bold; }

/* ============ COMMENTS ============ */
.recent-comments, .last-comments, .comments-preview {
  background: #fff;
  border: 1px solid #cfc7b7;
  padding: 10px 12px;
  margin-bottom: 14px;
}
.recent-comm-item { margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px dotted #d6cdb8; font-size: 12px; }
.recent-comm-item:last-child { border-bottom: 0; }
.comm-author, .c-author { font-weight: bold; color: #7a5a2a; }
.comm-text, .c-body { color: #3a352c; }

.comment {
  background: #f7f2e6;
  border: 1px solid #d6cdb8;
  padding: 8px 10px;
  margin-bottom: 8px;
  font-size: 12px;
}
.c-date { font-size: 11px; color: #8a7a56; margin-bottom: 3px; }
.c-body { line-height: 1.5; }

/* ============ WIDGETS ============ */
.widget {
  background: #fff;
  border: 1px solid #b8ae9a;
  margin-bottom: 12px;
}
.widget-title {
  background: linear-gradient(to bottom, #cfc5b2 0%, #b8ae9a 100%);
  color: #3a2f15;
  font-size: 12px;
  font-weight: bold;
  padding: 5px 10px;
  border-bottom: 1px solid #8a7a56;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.widget-body { padding: 8px 10px; font-size: 12px; line-height: 1.5; }
.widget-list { list-style: none; }
.widget-list li { padding: 3px 0; border-bottom: 1px dotted #d6cdb8; }
.widget-list li:last-child { border-bottom: 0; }
.widget-list a { color: #6b4f1d; text-decoration: none; }
.widget-list a:hover { text-decoration: underline; color: #a86f1a; }

.widget-recommend, .recommend {
  background: #fffbe6;
  border: 1px solid #e0d080;
}
.widget-recommend .widget-title, .recommend .widget-title {
  background: linear-gradient(to bottom, #f0e2a8 0%, #d8c98a 100%);
  border-bottom: 1px solid #c9a94a;
  color: #5b4215;
}
.widget-recommend .widget-body { color: #4a3f1f; }

.money-link { font-weight: bold; color: #a51d1d; }
.money-link:visited { color: #a51d1d; }
.money-link:hover { color: #d02020; }

/* ============ TAG CLOUD ============ */
.tag-cloud, .tags { line-height: 1.8; }
.tag {
  display: inline-block;
  margin: 0 4px 4px 0;
  padding: 1px 6px;
  border: 1px solid #c9bfa8;
  background: #f4efe2;
  color: #6b4f1d;
  text-decoration: none;
}
.tag:hover { background: #e0d8c4; color: #a86f1a; }
.tag.t1, .tag-lg { font-size: 14px; font-weight: bold; }
.tag.t2, .tag-md { font-size: 12px; }
.tag.t3, .tag-sm { font-size: 10px; }

/* ============ ICONS ============ */
.icon { vertical-align: middle; }
.icon-rss { width: 14px; height: 14px; }
.icon-mail { width: 14px; height: 14px; }
.icon-user { width: 14px; height: 14px; }
.icon-comment { width: 14px; height: 14px; }
.icon-calendar { width: 14px; height: 14px; }
.icon-tag { width: 14px; height: 14px; }
.icon-search { width: 14px; height: 14px; }
.icon-arrow-right { width: 12px; height: 12px; }

/* ============ FOOTER ============ */
.footer {
  background: #b8ae9a;
  background: linear-gradient(to bottom, #cfc5b2 0%, #a89e88 100%);
  border-top: 3px solid #8a7a56;
  padding: 10px 14px;
  font-size: 11px;
  color: #3a2f15;
  text-align: center;
}
.footer-links { margin-bottom: 6px; }
.footer-links a { color: #3a2f15; text-decoration: none; font-weight: bold; }
.footer-links a:hover { text-decoration: underline; color: #fff8e0; }
.footer-links .sep { color: #7a6f56; }
.copy { color: #4a4232; font-size: 11px; }

/* ============ QA ============ */
.qa-item {
  background: #fff;
  border: 1px solid #cfc7b7;
  padding: 10px 12px;
  margin-bottom: 10px;
}
.qa-question {
  font-weight: bold;
  color: #2c4a6b;
  font-size: 13px;
  margin-bottom: 6px;
}
.qa-answer { font-size: 13px; line-height: 1.5; color: #3a352c; }
.qa-answer p { margin-bottom: 6px; }
.qa-form {
  background: #f4efe2;
  border: 1px solid #d6cdb8;
  padding: 12px;
  margin-top: 14px;
}
.qa-form label { display: block; font-size: 12px; font-weight: bold; color: #5b4215; margin: 6px 0 3px 0; }
.qa-form input[type="text"], .qa-form textarea {
  width: 100%;
  border: 1px solid #b8ae9a;
  padding: 4px 6px;
  font-family: Verdana, Tahoma, sans-serif;
  font-size: 12px;
  background: #fff;
}
.qa-form textarea { height: 90px; resize: vertical; }
.qa-form input[type="submit"], .qa-form button {
  background: linear-gradient(to bottom, #e0d8c4 0%, #b8ae9a 100%);
  border: 1px solid #8a7a56;
  padding: 4px 14px;
  font-size: 12px;
  font-weight: bold;
  color: #3a2f15;
  cursor: pointer;
  margin-top: 8px;
}
.qa-form input[type="submit"]:hover, .qa-form button:hover { background: linear-gradient(to bottom, #ede5d2 0%, #cfc5b2 100%); }

/* ============ FORUM ============ */
.forum-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid #b8ae9a;
  font-size: 12px;
  margin-bottom: 14px;
}
.forum-table th {
  background: linear-gradient(to bottom, #cfc5b2 0%, #b8ae9a 100%);
  color: #3a2f15;
  padding: 6px 8px;
  text-align: left;
  border: 1px solid #8a7a56;
  font-size: 12px;
}
.forum-table td {
  padding: 5px 8px;
  border: 1px solid #d6cdb8;
  vertical-align: top;
}
.forum-table tr:nth-child(even) td { background: #f7f2e6; }
.forum-table tr:hover td { background: #f0e8d0; }
.forum-table a { color: #6b4f1d; font-weight: bold; text-decoration: none; }
.forum-table a:hover { text-decoration: underline; color: #a86f1a; }
.forum-table .row1 { background: #f7f2e6; }
.forum-table .row2 { background: #fff; }

.forum-form {
  background: #f4efe2;
  border: 1px solid #d6cdb8;
  padding: 12px;
  margin-top: 14px;
}
.forum-form label { display: block; font-size: 12px; font-weight: bold; color: #5b4215; margin: 6px 0 3px 0; }
.forum-form input[type="text"], .forum-form textarea {
  width: 100%;
  border: 1px solid #b8ae9a;
  padding: 4px 6px;
  font-family: Verdana, Tahoma, sans-serif;
  font-size: 12px;
  background: #fff;
}
.forum-form textarea { height: 80px; resize: vertical; }
.forum-form input[type="submit"], .forum-form button {
  background: linear-gradient(to bottom, #e0d8c4 0%, #b8ae9a 100%);
  border: 1px solid #8a7a56;
  padding: 4px 14px;
  font-size: 12px;
  font-weight: bold;
  color: #3a2f15;
  cursor: pointer;
  margin-top: 8px;
}

.forum-stats { font-size: 12px; }
.forum-stats dt { font-weight: bold; color: #6b4f1d; float: left; clear: left; width: 120px; padding: 2px 0; }
.forum-stats dd { padding: 2px 0; margin-left: 130px; color: #3a352c; }

/* ============ GUESTBOOK ============ */
.gb-entry {
  background: #fff;
  border: 1px solid #cfc7b7;
  padding: 8px 10px;
  margin-bottom: 8px;
  font-size: 12px;
}
.gb-author { font-weight: bold; color: #7a5a2a; }
.gb-date { font-size: 11px; color: #8a7a56; margin-left: 6px; }
.gb-body { margin-top: 4px; line-height: 1.5; }
.gb-form {
  background: #f4efe2;
  border: 1px solid #d6cdb8;
  padding: 12px;
  margin-top: 14px;
}
.gb-form label { display: block; font-size: 12px; font-weight: bold; color: #5b4215; margin: 6px 0 3px 0; }
.gb-form input[type="text"], .gb-form textarea {
  width: 100%;
  border: 1px solid #b8ae9a;
  padding: 4px 6px;
  font-family: Verdana, Tahoma, sans-serif;
  font-size: 12px;
  background: #fff;
}
.gb-form textarea { height: 80px; resize: vertical; }
.gb-form input[type="submit"], .gb-form button {
  background: linear-gradient(to bottom, #e0d8c4 0%, #b8ae9a 100%);
  border: 1px solid #8a7a56;
  padding: 4px 14px;
  font-size: 12px;
  font-weight: bold;
  color: #3a2f15;
  cursor: pointer;
  margin-top: 8px;
}

/* ============ ERROR / 404 ============ */
.error-page {
  background: #fff;
  border: 1px solid #cfc7b7;
  padding: 30px 20px;
  text-align: center;
}
.error-page h1 { border-bottom: 0; font-size: 48px; color: #a51d1d; margin-bottom: 10px; }
.error-page p { font-size: 14px; margin-bottom: 12px; color: #4a4232; }

/* ============ BOOKMARK ============ */
.bookmark { font-size: 11px; color: #8a7a56; }

/* ============ TABLE HELPERS ============ */
table { border-collapse: collapse; }
th { text-align: left; }

/* ============ ADAPTIVE (minimal) ============ */
@media (max-width: 960px) {
  .wrapper { width: auto; margin: 6px; }
  .container, .layout, .wrap { flex-direction: column; }
  .sidebar { flex: 1 1 auto; width: 100%; }
  .header { flex-direction: column; }
  .header-right { text-align: left; margin-top: 8px; }
}
