/* Подключение Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Playfair+Display:wght@400;700&display=swap');

/* Сброс базовых стилей */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', Arial, sans-serif;
    line-height: 1.6;
    background-color: #f3f4f6;
    color: #4b5563;
}

/* Стили для хедера */
header {
    width: 100%;
    padding: 1rem 0;
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.logo img {
    max-height: 50px;
    width: auto;
}

/* Стили для кнопок в хедере */
header nav a, header button {
    display: inline-block;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    color: #e63946;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

header nav a:hover, header button:hover {
    color: #dc2626;
}

header nav a::after, header button::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #dc2626;
    transition: width 0.3s ease;
}

header nav a:hover::after, header button:hover::after {
    width: 100%;
}

/* Стили для контейнера */
.container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1rem;
}

/* Хлебные крошки */
nav[aria-label="Breadcrumb"] {
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

nav[aria-label="Breadcrumb"] ol {
    display: inline-flex;
    gap: 0.5rem;
}

nav[aria-label="Breadcrumb"] a {
    color: #4b5563;
    text-decoration: none;
    transition: color 0.3s ease;
}

nav[aria-label="Breadcrumb"] a:hover {
    color: #dc2626;
    text-decoration: underline;
}

nav[aria-label="Breadcrumb"] span {
    color: #6b7280;
}

/* Стили для заголовков */
h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    color: #e63946;
    margin-bottom: 0.5rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

/* Применяем цвет к p, только если он НЕ внутри .subcategory-card */
main p,
main div p,
main section p,
main article p,
main aside p,
footer p,
footer div p,
header p,
header div p {
    color: #4b5563;
    margin-bottom: 1rem;
}

.text-red-600 {
    color: #dc2626;
}

/* Стили для ссылок и кнопок (кроме хедера) */
a:not(header nav a), button:not(header button) {
    transition: all 0.3s ease;
    color: #e63946;
    text-decoration: none;
    cursor: pointer;
}

a:not(header nav a):hover, button:not(header button):hover {
    color: #d32f2f;
}

/* Стили для футера */
footer {
    width: 100%;
    background-color: #1a202c;
    color: white;
    padding: 2rem 0;
    margin-top: 2rem;
}

footer .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
}

footer ul {
    list-style: none;
    padding: 0;
}

footer ul li {
    margin-bottom: 0.5rem;
}

footer ul li a {
    color: white;
    transition: color 0.3s ease;
}

footer ul li a:hover {
    color: #f56565;
}