/* --- ОБЩИЕ СТИЛИ И ПЕРЕМЕННЫЕ --- */
:root {
    --bg-color: #F9F9F9;
    --text-color: #111111;
    --font-main: 'Onest', sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Универсальный контейнер для ограничения контента по ширине */
.container {
    max-width: 1200px; /* Ограничиваем максимальную ширину контента */
    margin-left: auto; /* Автоматические отступы слева и справа */
    margin-right: auto;/* центрируют контейнер */
    padding-left: 20px; /* Небольшие отступы на случай очень узких экранов */
    padding-right: 20px;
}


/* --- НАВБАР --- */
.navbar {
    width: 100%;
    height: 70px;
    display: flex;
    align-items: center;
    top: 0;
    left: 0;
    background-color: var(--bg-color);
    z-index: 1000;
}

.navbar-content {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-left: 100px;
    padding-right: 100px;
}

.navbar-logo {
    display: flex;
    align-items: center;
}

.navbar-link {
    font-size: 18px;
    font-weight: 800; /* ExtraBold */
}


/* --- ОСНОВНОЙ КОНТЕНТ И ЗАГОЛОВОК СТРАНИЦЫ --- */
.main-content {
    padding-top: 80px; 
}

.page-title {
    font-size: 64px;
    font-weight: 900; /* Black */
    text-align: center;
    color: var(--text-color);
}

/* --- СЕТКА АРТИСТОВ --- */
.artists-grid {
    margin-top: 40px;
    display: grid;
    /* Пересчитываем ширину колонок под новый контейнер */
    grid-template-columns: repeat(4, 275px); 
    gap: 20px;
    justify-content: center;
}

/* --- СТАНДАРТНАЯ КАРТОЧКА АРТИСТА --- */
.artist-card {
    width: 275px; /* Ширина теперь соответствует колонке */
    height: 320px; /* Слегка уменьшим высоту для сохранения пропорций */
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    background-color: #e0e0e0;
}

.artist-photo {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Фото заполняет всю карточку без искажений */
    transition: transform 0.35s ease-in-out; /* Плавный зум */
    backface-visibility: hidden;
    will-change: transform;
}

.artist-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(17, 17, 17, 0.7); /* Полупрозрачный темный фон */
    
    /* Скрываем по умолчанию */
    opacity: 0;
    transition: opacity 0.35s ease-in-out;

    /* Стили для текста внутри */
    padding: 20px;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Расталкивает никнейм и инфо по краям */
}

.artist-name {
    font-size: 24px;
    font-weight: 800; /* Black */
}

.artist-info {
    font-size: 12px;
    font-weight: 500; /* Medium */
}

/* --- ЭФФЕКТЫ ПРИ НАВЕДЕНИИ --- */
.artist-card:hover .artist-photo {
    transform: scale(1.05); /* Легкое приближение фото */
}
.artist-card:hover .artist-overlay {
    opacity: 1; /* Показываем оверлей */
}


/* --- СПЕЦИАЛЬНАЯ КАРТОЧКА (CTA) --- */
.artist-card--cta {
    /* ЗАНИМАЕТ ДВЕ КОЛОНКИ СЕТКИ */
    grid-column: span 2;
    width: auto; /* Ширина будет рассчитана сеткой автоматически */
    
    background-color: #111111;
    display: flex; /* Используем flex для позиционирования контента */
    padding: 20px;
    
    /* ВАЖНО: позволяем изображению капкана выходить за границы */
    overflow: visible; 
}

.cta-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start; /* Прижимаем контент к левому краю */
    position: relative; /* Чтобы z-index сработал */
    z-index: 2; /* Контент поверх картинки */
}

.cta-title {
    font-size: 40px;
    font-weight: 900; /* Black */
    color: #ffffff;
}

.cta-button {
    background-color: #ffffff;
    color: #111111;
    font-size: 14px;
    font-weight: 500; /* Medium */
    padding: 10px 20px;
    border-radius: 50px; /* Делает кнопку полностью круглой по бокам */
    transition: transform 0.2s ease-out; /* Плавность движения кнопки */
}

.cta-image {
    position: absolute;
    scale: 1.7;
    right: 48px;
    bottom: 28px;
    width: 280px; /* Примерный размер */
    height: auto;
    pointer-events: none; /* Чтобы картинка не мешала кликам */
    z-index: 1; /* Картинка под контентом, но над фоном */
}

/* --- ПОДВАЛ (FOOTER) --- */

.footer {
    margin-top: 80px; /* Отступ от блока сервисов */
    background-color: #EFEFEF;
    height: 370px;
    padding-top: 38px; /* Отступ от верха подвала */
    padding-bottom: 40px; /* Отступ от низа подвала */
    
    /* Делаем футер flex-контейнером, чтобы .container растянулся на всю высоту */
    display: flex;
}

.footer .container {
    /* Растягиваем контейнер, чтобы можно было прижать .footer-bottom к низу */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
}

.footer-main {
    display: flex;
    justify-content: space-between;
}

.footer-column-left {
    /* Левая колонка может занять больше места */
}

.footer-description {
    margin-top: 10px;
    font-size: 14px;
    font-weight: 400; /* Regular */
    color: #666666;
}

.social-icons {
    margin-top: 60px;
    display: flex;
    gap: 6px;
}

.social-icons a {
    display: block; /* Убирает лишние отступы под SVG */
}

.footer-column-right {
    margin-right: 280px;
}

.footer-title {
    font-size: 18px;
    font-weight: 800; /* ExtraBold */
}

.footer-link {
    display: block; /* Чтобы ссылки были на разных строках */
    margin-top: 10px;
    font-size: 12px;
    font-weight: 400; /* Regular */
    color: #666666;
    text-decoration: none;
}
.footer-link:hover {
    text-decoration: underline;
}

.bot {
    margin-top: 0px;
}

.bot, .mail {
    font-size: 14px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end; /* Выравниваем по низу для идеального вида */
}

.footer-legal,
.footer-copy {
    font-size: 12px;
    font-weight: 400; /* Regular */
    color: #666666;
}

.footer-copy .footer-link {
    display: inline; /* Чтобы ссылка была в той же строке */
    margin-top: 0;
}

