body { background: #1a1410 url("../img/wall-texture.png") center/cover no-repeat fixed; }
/* Общие стили */
body { margin: 0; font-family: 'Segoe UI', system-ui, sans-serif; color: #ffffff; text-shadow: 1px 1px 4px rgba(0,0,0,0.9), 0 0 10px rgba(0,0,0,0.5); }
.container { max-width: 960px; margin: 0 auto; padding: 0 20px; }
a { color: #d4784c; text-decoration: none; }
h2, h3 { color: #d4784c; }

/* Шапка */
.header { background: rgba(26,20,16,0.9); border-bottom: 1px solid rgba(212,120,76,0.3); padding: 15px 0; }
.header-content { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.4rem; margin: 0; }
.lang-btn { background: transparent; border: 1px solid #d4784c; color: #d4784c; padding: 5px 12px; margin-left: 8px; border-radius: 4px; cursor: pointer; }
.lang-btn.active { background: #d4784c; color: #1a1410; }

/* Hero */
.hero { padding: 80px 0; text-align: center; background: rgba(0,0,0,0.3); }
.hero h2 { font-size: 2.2rem; margin-bottom: 10px; }
.hero-subtitle { font-size: 1.1rem; color: #b0a090; margin-bottom: 20px; }
.hero-description { max-width: 700px; margin: 0 auto; line-height: 1.6; }

/* Секции */
.section { padding: 60px 0; }
.principles-grid, .articles-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px; margin-top: 30px; }
.principle-card, .article-card { background: rgba(26,20,16,0.6); border: 1px solid rgba(212,120,76,0.2); border-radius: 12px; padding: 24px; backdrop-filter: blur(6px); }
.principle-icon { font-size: 2rem; margin-bottom: 12px; }
.read-more { display: inline-block; margin-top: 12px; font-weight: bold; }

/* Футер */
.footer { background: rgba(26,20,16,0.9); border-top: 1px solid rgba(212,120,76,0.3); padding: 20px 0; text-align: center; margin-top: 40px; }
.services-note { text-align: center; margin-top: 30px; font-style: italic; color: #b0a090; }
.tags { margin: 10px 0 12px; }
.tags span { display: inline-block; background: rgba(0,0,0,0.35); color: #9bba8f; padding: 2px 10px; border-radius: 20px; margin-right: 6px; font-size: 0.8rem; }
/* Виджет Домовёнка */
#domovenok-widget { position: fixed; bottom: 20px; right: 20px; z-index: 1000; font-family: 'Segoe UI', system-ui, sans-serif; }
.domovenok-toggle { display: flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 30px;
    font-size: 16px; font-weight: bold; background: #d4784c;
    color: #1a1410; border: none; font-size: 24px; cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5); transition: transform 0.2s;
}
.domovenok-toggle:hover { transform: scale(1.1); }
.domovenok-chat {
    display: none; flex-direction: column;
    position: absolute; bottom: 70px; right: 0;
    width: 350px; max-height: 480px;
    background: rgba(26,20,16,0.95); border: 1px solid #d4784c;
    border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,0.7);
    overflow: hidden;
}
.domovenok-chat.open { display: flex; }
.domovenok-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 16px; background: rgba(36,28,22,0.9);
    border-bottom: 1px solid #3a2e24;
}
.domovenok-title { color: #d4784c; font-weight: bold; font-size: 1rem; display: block; }
.domovenok-status { color: #ff9800; font-size: 0.7rem; display: block; margin-top: 2px; }
.domovenok-close { background: none; border: none; color: #e0d6cc; font-size: 1.2rem; cursor: pointer; }
.domovenok-messages {
    flex: 1; overflow-y: auto; padding: 12px;
    background: rgba(0,0,0,0.3); display: flex; flex-direction: column; gap: 8px;
    min-height: 200px; max-height: 300px;
}
.domovenok-msg { max-width: 85%; padding: 8px 12px; border-radius: 18px; font-size: 0.85rem; word-wrap: break-word; }
.domovenok-msg.user { background: #2e241c; align-self: flex-end; text-align: right; color: #e0d6cc; }
.domovenok-msg.bot { background: #3e5a3a; align-self: flex-start; color: #e0d6cc; }
.domovenok-msg.info { background: #3a2e24; align-self: center; font-size: 0.8rem; color: #b0a090; text-align: center; max-width: 100%; }
.domovenok-input-area { display: flex; padding: 10px; border-top: 1px solid #3a2e24; }
.domovenok-input-area input {
    flex: 1; padding: 10px; border-radius: 20px; border: 1px solid #d4784c;
    background: #1a1410; color: #e0d6cc; font-size: 0.85rem; outline: none;
}
.domovenok-input-area button {
    background: #d4784c; border: none; color: #1a1410; padding: 10px 20px;
    border-radius: 20px; margin-left: 8px; cursor: pointer; font-weight: bold; font-size: 0.85rem;
}
.domovenok-input-area button:disabled { opacity: 0.5; cursor: not-allowed; }
@media (max-width: 480px) {
    .domovenok-chat { width: 90vw; right: 5vw; }
}
/* Индикатор печати */
.typing-indicator {
    display: flex; gap: 4px; padding: 8px 12px;
    background: #3e5a3a; border-radius: 18px;
    align-self: flex-start; max-width: 60px;
}
.typing-indicator span {
    width: 8px; height: 8px;
    background: #e0d6cc; border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out;
}
.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing {
    0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
    30% { opacity: 1; transform: translateY(-4px); }
}
/* Блок контактов */
.contact-subtitle { text-align: center; color: #b0a090; margin-bottom: 30px; font-style: italic; }
.contact-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px; margin-bottom: 30px;
}
.contact-card {
    background: rgba(26,20,16,0.6); border: 1px solid rgba(212,120,76,0.2);
    border-radius: 12px; padding: 20px; text-align: center;
    text-decoration: none; color: #e0d6cc; transition: transform 0.2s;
    display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.contact-card:hover { transform: scale(1.03); border-color: #d4784c; }
.contact-icon { font-size: 2rem; transition: transform 0.2s; }
.contact-card:hover .contact-icon { transform: scale(1.1); }
.contact-name { font-weight: bold; font-size: 1.1rem; color: #d4784c; }
.contact-desc { font-size: 0.85rem; color: #b0a090; }
.contact-footer { text-align: center; font-size: 0.9rem; color: #b0a090; font-style: italic; }
/* Исправленная кнопка Домовёнка */
.domovenok-toggle {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 12px 20px !important;
    border-radius: 30px !important;
    font-size: 16px !important;
    font-weight: bold !important;
    width: auto !important;
    height: auto !important;
    background: #d4784c !important;
    color: #1a1410 !important;
    border: 2px solid #e0d6cc !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5) !important;
}
.domovenok-toggle:hover {
    background: #e08a5e !important;
    transform: scale(1.05) !important;
}
