/* main.css */

/* Сброс стилей */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Базовые переменные */
:root {
    --bg-cream: #FFFEF9;
    --text-dark: #3A3A3A;
    --text-light: #6B6B6B;
    --accent-indigo: #6B7AA1;  /* ← Обновили здесь */
    --accent-hover: #5A6890;   /* ← И здесь */
    --white: #FFFFFF;
    --border-light: #E8E8E8;
}
/* Общие стили */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-cream);
    color: var(--text-dark);
    line-height: 1.6;
    font-size: 16px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Типографика */
h1, h2, h3 {
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    line-height: 1.3;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

/* Ссылки */
a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* Кнопки */
.btn-primary {
    display: inline-block;
    padding: 14px 32px;
    background-color: var(--accent-indigo);
    color: var(--white);
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(107, 122, 161, 0.3);
}

.btn-download {
    display: inline-block;
    padding: 16px 40px;
    background-color: var(--accent-indigo);
    color: var(--white);
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-download:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(107, 122, 161, 0.4);
}

/* Карточки раскрасок (общие) */
.coloring-card,
.catalog-card,
.similar-card {
    position: relative;
    display: block;
    border-radius: 12px;
    overflow: hidden;
    background-color: var(--white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.coloring-card img,
.catalog-card img,
.similar-card img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.coloring-card:hover,
.catalog-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* Оверлей при наведении */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.coloring-card:hover .overlay,
.catalog-card:hover .overlay {
    opacity: 1;
}

.coloring-card:hover img,
.catalog-card:hover img {
    transform: scale(1.05);
}

.overlay .download-btn {
    background: var(--white);
    color: var(--text-dark);
    padding: 10px 24px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.overlay .title {
    color: var(--white);
    font-weight: 600;
    text-align: center;
    font-size: 1rem;
}

/* Адаптивность */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .container {
        padding: 0 15px;
    }
}
