body {
    background: linear-gradient(145deg, #fff8f2 0%, #ffe9db 100%);
    background-attachment: fixed;
    font-family: 'Segoe UI', 'Nunito', system-ui, sans-serif;
}
#header {
    background: rgba(255, 248, 240, 0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(200, 160, 130, 0.2);
    position: sticky;
    top: 0;
    z-index: 100;
}
.site-title a {
    color: #c28553;
    letter-spacing: 1px;
}
.main-nav .nav-link {
    color: #5a3e2b;
    font-weight: 500;
    transition: all 0.2s;
}
.main-nav .nav-link:hover {
    color: #e8a56e;
    transform: translateY(-2px);
}
.category-card {
    background: rgba(255, 248, 240, 0.9);
    backdrop-filter: blur(4px);
    border-radius: 28px;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}
.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 20px -8px rgba(0,0,0,0.1);
    background: white;
}
.swiper-pagination-bullet-active {
    background-color: #c28553 !important;
}
footer a {
    color: #c28553;
}
footer a:hover {
    text-decoration: underline;
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.category-card, .card {
    animation: fadeInUp 0.4s ease-out forwards;
}

.category-card {
    min-height: 200px;
    background: rgba(255, 248, 240, 0.9);
    backdrop-filter: blur(4px);
    border-radius: 28px;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}
.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 20px -8px rgba(0,0,0,0.1);
    background: white;
}
.btn-outline-secondary {
    border-radius: 40px;
    padding: 6px 20px;
}

.btn-chocolate {
    background-color: #5a3a2a;
    border-color: #4a2e1e;
    color: #fff8f2;
    transition: all 0.2s;
}
.btn-chocolate:hover {
    background-color: #3b2518;
    border-color: #2f1e13;
    transform: scale(1.02);
}
.btn-chocolate:active {
    transform: scale(0.98);
}

.btn-chocolate:hover {
    background-color: #3b2518;
    border-color: #2f1e13;
    color: #fff8f2 !important;
}
.btn-chocolate:hover span, 
.btn-chocolate:hover {
    color: #fff8f2 !important;
}

.btn-outline-secondary {
    border-color: #d9bc9a;
    color: #8b5a34;
}
.btn-outline-secondary:hover {
    background-color: #f7e0ca;
    border-color: #c28553;
    color: #5a3a2a;
}

.btn-chocolate {
    background-color: #5a3a2a;
    border-color: #4a2e1e;
    color: #fff8f2;
    transition: all 0.2s ease;
}
.btn-chocolate:hover {
    background-color: #3b2518;
    border-color: #2f1e13;
    color: #fff8f2;
    transform: translateY(-1px);
}
.btn-chocolate:active {
    transform: translateY(1px);
}

/* Кнопка "Найти совет" */
.btn-chocolate {
    background-color: #5a3a2a;
    border-color: #4a2e1e;
    color: #fff8f2;
    transition: all 0.2s ease;
}
.btn-chocolate:hover {
    background-color: #3b2518;
    border-color: #2f1e13;
    color: #fff8f2;
    transform: translateY(-2px);
}
.btn-chocolate:active {
    transform: translateY(1px);
}

/* Карточка формы */
.card {
    background: rgba(255, 248, 240, 0.9);
    backdrop-filter: blur(4px);
    border-radius: 32px !important;
}
.form-control:focus {
    border-color: #c28553;
    box-shadow: 0 0 0 0.2rem rgba(194, 133, 83, 0.25);
}

.bg-chocolate {
    background-color: #5a3a2a;
    color: #fff8f2;
}

.bg-caramel {
    background-color: #f5e0cd;
    color: #5a3a2a;
    font-weight: 500;
}

body {
    color: #4a2e2a;
}
h1, h2, h3, h4, h5, h6, .card-title, .lead, .nav-link, .site-title a {
    color: #4a2e2a;
}
p, li, span, .text-muted {
    color: #5c4035;
}
a:not(.btn):not(.nav-link) {
    color: #8b5a34;
}
a:not(.btn):not(.nav-link):hover {
    color: #c28553;
}

.lead {
    text-shadow: 0 1px 1px rgba(0,0,0,0.03), 0 2px 2px rgba(0,0,0,0.02);
    font-weight: 400;
    letter-spacing: 0.01em;
}

.lead {
    text-shadow: 0 1px 1px rgba(0,0,0,0.03), 0 2px 2px rgba(0,0,0,0.02);
    font-weight: 400;
    letter-spacing: 0.01em;
}

.btn-chocolate {
    min-width: 220px;
    text-align: center;
}
@media (max-width: 768px) {
    .btn-chocolate {
        min-width: 180px;
    }
}

.btn-chocolate {
    background-color: #5a3a2a;
    border-color: #4a2e1e;
    color: #fff8f2;
    transition: all 0.2s ease;
}
.btn-chocolate:hover {
    background-color: #3b2518;
    border-color: #2f1e13;
    color: #fff8f2;
    transform: translateY(-2px);
}
.btn-chocolate:active {
    transform: translateY(1px);
}

.form-control:focus {
    border-color: #c28553;
    box-shadow: 0 0 0 0.2rem rgba(194, 133, 83, 0.25);
}

/* Страница совета */
.tip-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.6;
}
.tip-content h3 {
    margin-top: 1.5rem;
    font-size: 1.3rem;
    color: #4a2e2a;
}
.tip-content p {
    margin-bottom: 1rem;
}
.tip-content ul, .tip-content ol {
    margin: 0.5rem 0 1rem 1.5rem;
}
.tip-content li {
    margin-bottom: 0.3rem;
}
.rating-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #f0e0d0;
}
.rating-section .rating {
    font-size: 1.2rem;
    font-weight: bold;
}
.btn-like {
    background-color: #5a3a2a;
    border: none;
    color: #fff8f2;
    padding: 8px 24px;
    border-radius: 40px;
    transition: all 0.2s;
}
.btn-like:hover {
    background-color: #3b2518;
    transform: translateY(-2px);
}
.btn-like:active {
    transform: translateY(1px);
}

/* Светлый фон для записей в кабинете */
.bg-light-caramel {
    background-color: #fff5ec !important;
}

/* Фон как у категорий на главной */
.category-card-bg {
    background: rgba(255, 248, 240, 0.9);
    backdrop-filter: blur(4px);
    border-radius: 28px;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}
.category-card-bg:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px -4px rgba(0,0,0,0.08);
    background: rgba(255, 248, 240, 1);
}

.list-group-item-custom {
    background: rgba(255, 248, 240, 0.6) !important;
    border-left: 4px solid #d4a373 !important;
    margin-bottom: 8px !important;
    border-radius: 16px !important;
    transition: all 0.2s ease;
}
.list-group-item-custom:hover {
    background: rgba(255, 248, 240, 0.9) !important;
    transform: translateX(4px);
}

/* Стиль для таблиц в блоге */
.blog-content table {
    background: rgba(255, 248, 240, 0.7) !important;
    border-radius: 20px;
    overflow: hidden;
}
.blog-content th, .blog-content td {
    background: rgba(255, 248, 240, 0.5) !important;
    border-color: #d4a373 !important;
}

/* Таблицы в блоге — единый стиль */
.blog-content table {
    background: rgba(255, 248, 240, 0.7);
    border-radius: 20px;
    overflow: hidden;
    border-collapse: collapse;
    width: 100%;
}
.blog-content th, 
.blog-content td {
    background: rgba(255, 248, 240, 0.5);
    border: 1px solid #d4a373 !important;
    padding: 12px;
    vertical-align: top;
}
.blog-content th {
    background: #f5e0cd;
    font-weight: 600;
}

/* Таблицы в блоге — единый стиль */
.blog-content table {
    background: rgba(255, 248, 240, 0.7);
    border-radius: 20px;
    overflow: hidden;
    border-collapse: collapse;
    width: 100%;
}
.blog-content th, 
.blog-content td {
    background: rgba(255, 248, 240, 0.5);
    border: 1px solid #d4a373 !important;
    padding: 12px;
    vertical-align: top;
}
.blog-content th {
    background: #f5e0cd;
    font-weight: 600;
}

/* Стиль для списков в кабинете (избранное, голоса, история) */
.list-group-item-custom {
    background: rgba(255, 248, 240, 0.7) !important;
    border: 1px solid #d4a373 !important;
    border-radius: 12px !important;
    margin-bottom: 8px !important;
    transition: all 0.2s ease;
}
.list-group-item-custom:hover {
    background: rgba(255, 248, 240, 0.9) !important;
    transform: translateX(4px);
}

/* Списки в кабинете (избранное, голоса, история) */
.profile-list {
    background: rgba(255, 248, 240, 0.7);
    border-radius: 16px;
    padding: 8px;
    border: 1px solid #d4a373;
}
.profile-list .list-group-item {
    background: rgba(255, 248, 240, 0.5);
    border: 1px solid #d4a373;
    border-radius: 12px;
    margin-bottom: 8px;
}
.profile-list .list-group-item:hover {
    background: rgba(255, 248, 240, 0.9);
    transform: translateX(4px);
}

/* Списки в кабинете (избранное, голоса, история) */
.profile-list .list-group-item {
    background: rgba(255, 248, 240, 0.8) !important;
    border: 1px solid #d4a373 !important;
    border-radius: 12px !important;
    margin-bottom: 8px !important;
}
.profile-list .list-group-item:hover {
    background: rgba(255, 248, 240, 1) !important;
    transform: translateX(4px);
}
