/* ==========================================================================
   CSS ПЕРЕМЕННЫЕ — ЦВЕТОВАЯ ПАЛИТРА
   ========================================================================== */
:root {
    --navy:           #1a1f4e;
    --navy-light:     #252b6b;
    --fuchsia:        #e8006f;
    --fuchsia-light:  #ff3d8b;
    --bg:             #f7f8ff;
    --bg-white:       #ffffff;
    --text:           #1a1f4e;
    --text-muted:     #5a6080;
    --border:         #e2e5f5;
    --shadow:         rgba(26, 31, 78, 0.10);
    --shadow-accent:  rgba(232, 0, 111, 0.20);
}

/* ==========================================================================
   1. БАЗОВЫЕ НАСТРОЙКИ
   ========================================================================== */
html { scroll-behavior: smooth; }

* { box-sizing: border-box; }

figure { margin: 0; }

body {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main { flex: 1; }

h1, h2, h3, h4 { margin-top: 0; color: var(--navy); line-height: 1.2; font-weight: 700; }
p { margin: 0 0 1rem 0; }

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s, color 0.2s;
}
a:hover { opacity: 0.8; }

ul { list-style: none; padding: 0; margin: 0; }
img { max-width: 100%; display: block; height: auto; }

hr {
    border: 0;
    border-top: 1px solid var(--border);
    margin: 2rem auto;
    max-width: 150px;
}

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   2. КНОПКА (ГЛОБАЛЬНЫЙ СТИЛЬ)
   ========================================================================== */
.btn {
    display: inline-block;
    background-color: var(--fuchsia);
    color: #fff;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 700;
    text-align: center;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 18px var(--shadow-accent);
    transition: transform 0.2s, background-color 0.2s, box-shadow 0.2s;
    letter-spacing: 0.3px;
    font-family: inherit;
}
.btn:hover {
    background-color: var(--fuchsia-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--shadow-accent);
    opacity: 1;
}

/* ==========================================================================
   3. ЗАГОЛОВКИ СЕКЦИЙ
   ========================================================================== */
.section-title {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    text-align: center;
    color: var(--navy);
}
.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0;
}

/* ==========================================================================
   4. ШАПКА
   ========================================================================== */
header {
    background-color: var(--navy);
    box-shadow: 0 2px 16px rgba(26, 31, 78, 0.30);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 10px 0;
    transition: transform 0.3s ease;
    will-change: transform;
}
header.header-hidden {
    transform: translateY(-100%);
}
header .container {
    padding: 0 14px;
}
header nav {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}
.logo {
    font-size: 1rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.3px;
    white-space: nowrap;
}
.logo::after {
    content: '♪';
    color: var(--fuchsia);
    margin-left: 4px;
    font-size: 0.85rem;
}
.nav-links {
    display: flex;
    gap: 10px;
    font-size: 0.78rem;
    font-weight: 500;
}
.nav-links a {
    color: rgba(255,255,255,0.72);
    padding: 3px 0;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
    white-space: nowrap;
}
.nav-links a:hover {
    color: #fff;
    opacity: 1;
    border-bottom-color: var(--fuchsia);
}
.nav-links a.active {
    color: #fff;
    font-weight: 700;
    border-bottom-color: var(--fuchsia);
}

/* Экстра-мелкие экраны (старые iPhone SE, узкие Android) */
@media (max-width: 380px) {
    header .container { padding: 0 10px; }
    .logo { font-size: 0.88rem; letter-spacing: 0; }
    .logo::after { margin-left: 3px; font-size: 0.78rem; }
    .nav-links { gap: 8px; font-size: 0.72rem; }
}

/* ==========================================================================
   5. БИО СЕКЦИЯ
   ========================================================================== */
.bio-section {
    padding: 60px 0;
    text-align: center;
    background: linear-gradient(160deg, var(--bg) 55%, #ede8ff 100%);
}
.bio-header { margin-bottom: 35px; }
.bio-header .section-title {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(100deg, var(--navy) 40%, var(--fuchsia) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: var(--navy); /* fallback */
}
.bio-cta {
    margin-top: 22px;
}

.fixed-photo-wrapper {
    margin: 0 auto;
    max-width: 320px;
    padding: 10px;
    border-radius: 24px;
    border: 3px solid transparent;
    background:
        linear-gradient(var(--bg-white), var(--bg-white)) padding-box,
        linear-gradient(135deg, var(--navy) 0%, var(--fuchsia) 100%) border-box;
    box-shadow: 0 16px 48px var(--shadow);
}
.fixed-photo-wrapper img { border-radius: 18px; width: 100%; }
.fixed-photo-wrapper figcaption {
    margin-top: 12px;
    font-style: italic;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ==========================================================================
   6. "О НАС" (FEATURES)
   ========================================================================== */
.features {
    padding: 60px 0;
    background-color: var(--bg-white);
}
.features h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
}
.grid-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}
.card {
    background: var(--bg);
    padding: 28px;
    border-radius: 18px;
    border: 1px solid var(--border);
    text-align: left;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--navy), var(--fuchsia));
    border-radius: 18px 18px 0 0;
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px var(--shadow);
}
.card-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--navy), var(--fuchsia));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}
.card-icon svg {
    width: 26px;
    height: 26px;
}
.card h3 { color: var(--navy); margin-bottom: 12px; font-size: 1.2rem; }
.card p  { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 0; }
.card a  { color: var(--fuchsia); border-bottom: 1px dashed var(--fuchsia); }

/* Сворачиваемый текст */
.card-content {
    max-height: 4.8em;
    overflow: hidden;
    transition: max-height 0.5s ease;
    -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 60%, transparent 100%);
}
.card.expanded .card-content {
    max-height: 1200px;
    -webkit-mask-image: none;
    mask-image: none;
}
.read-more-btn {
    background: none;
    border: none;
    color: var(--fuchsia);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 10px 0 0;
    margin-top: 6px;
    font-family: inherit;
    align-self: flex-start;
    transition: color 0.2s;
}
.read-more-btn::before {
    content: 'Читать далее ↓';
}
.card.expanded .read-more-btn::before {
    content: 'Свернуть ↑';
}
.read-more-btn:hover {
    color: var(--fuchsia-light);
}

/* ==========================================================================
   7. ПЛОЩАДКИ — ЕДИНЫЙ ЦВЕТ
   ========================================================================== */
.music-links-section {
    padding: 60px 0;
    background: var(--bg);
}
.music-links-section > .container > p {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    max-width: 360px;
    margin: 0 auto;
}
.service-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 8px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.82rem;
    color: #fff !important;
    background: #6b7299;                              /* ← было var(--navy) */
    box-shadow: 0 4px 14px rgba(107, 114, 153, 0.25); /* ← было var(--shadow) */
    transition: transform 0.25s, box-shadow 0.25s, background 0.25s;
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
    transition: left 0.6s ease;
}
.service-card:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 26px var(--shadow-accent);
    background: var(--fuchsia);
    opacity: 1;
}
.service-card:hover::before {
    left: 100%;
}
.service-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    display: block;
}

@media (min-width: 480px) {
    .services-grid {
        gap: 14px;
        max-width: 520px;
    }
    .service-card {
        gap: 10px;
        padding: 14px 18px;
        font-size: 0.95rem;
        border-radius: 14px;
    }
    .service-icon {
        width: 22px;
        height: 22px;
    }
}

/* ==========================================================================
   8. HERO
   ========================================================================== */
.hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 55%, #2d1060 100%);
    color: #fff;
    text-align: center;
    padding: 70px 20px;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute; top: -80px; right: -80px;
    width: 320px; height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(232,0,111,0.28) 0%, transparent 70%);
    pointer-events: none;
}
.hero::after {
    content: '';
    position: absolute; bottom: -60px; left: -60px;
    width: 250px; height: 250px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(232,0,111,0.15) 0%, transparent 70%);
    pointer-events: none;
}
.hero h2 { margin-bottom: 15px; color: #fff; font-size: 2.2rem; position: relative; }
.hero p  { max-width: 600px; margin: 0 auto 30px; font-size: 1.1rem; color: rgba(255,255,255,0.85); position: relative; }
.hero .btn { background: var(--fuchsia); color: #fff; position: relative; }
.hero .btn:hover { background: var(--fuchsia-light); }

/* ==========================================================================
   9. КОНТАКТЫ
   ========================================================================== */
.contacts-section {
    padding: 60px 0;
    text-align: center;
    background-color: var(--bg-white);
}
.contacts-wrapper { display: flex; flex-direction: column; gap: 20px; margin: 30px 0; }
.contact-box {
    background: var(--bg);
    padding: 32px;
    border-radius: 18px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 20px var(--shadow);
    transition: transform 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.contact-box:hover { transform: translateY(-3px); }
.contact-box h3   { color: var(--navy); margin-bottom: 6px; font-size: 1.2rem; }
.role-desc        { color: var(--text-muted); margin-bottom: 20px; font-size: 0.95rem; }

/* Кнопки мессенджеров — компактные, по ширине контента */
.btn-messenger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 11px 28px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    color: #fff !important;
    margin-top: 10px;
    white-space: nowrap;   /* ← добавить эту строку */
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.btn-messenger svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}
.btn-messenger:hover {
    opacity: 1;
    transform: translateY(-2px);
}
.btn-tg {
    background-color: #6b7299;
    box-shadow: 0 4px 14px var(--shadow);
}
.btn-tg:hover {
    background-color: #6b7299;
    box-shadow: 0 8px 22px var(--shadow);
}
.btn-max {
    background-color: var(--fuchsia);
    box-shadow: 0 4px 14px var(--shadow-accent);
}
.btn-max:hover {
    background-color: var(--fuchsia-light);
    box-shadow: 0 8px 22px var(--shadow-accent);
}

.social-block { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); }
.social-block p { color: var(--text-muted); margin-bottom: 10px; }

.vk-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: #6b7299;
    color: #fff;
    padding: 11px 28px;
    border-radius: 50px;
    font-weight: 700;
    transition: background 0.2s, transform 0.2s;
}
.vk-btn:hover { background-color: #6b7299; opacity: 1; transform: translateY(-2px); }
.vk-icon {
    font-weight: 900;
    background: var(--fuchsia);
    color: #fff;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 0.8rem;
    line-height: 1.5;
}

/* ==========================================================================
   10. ПОДВАЛ
   ========================================================================== */
footer {
    background-color: var(--navy);
    color: rgba(255,255,255,0.50);
    padding: 28px 0;
    text-align: center;
    font-size: 0.88rem;
    margin-top: auto;
}

/* ==========================================================================
   11. СТРАНИЦА "ПЕСНИ"
   ========================================================================== */
.main-header { text-align: center; padding: 30px 20px 30px; }
.main-header h1 { font-size: 2rem; margin-bottom: 12px; }
.main-header p  { color: var(--text-muted); max-width: 700px; margin: 0 auto; }

.audio-section { padding-bottom: 70px; }

.tracks-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    justify-items: center;
}

.track-card {
    background: var(--bg-white);
    border-radius: 18px;
    box-shadow: 0 4px 20px var(--shadow);
    overflow: hidden;
    width: 100%;
    max-width: 350px;
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    scroll-margin-top: 100px;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid var(--border);
}
.track-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 32px var(--shadow);
}

.track-cover {
    width: 100%; height: 0; padding-bottom: 100%;
    position: relative; background-color: var(--border);
}
.track-cover img {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%; object-fit: cover;
}

.track-info {
    padding: 20px; text-align: center;
    display: flex; flex-direction: column; flex-grow: 1;
}
.track-header  { margin-bottom: 10px; }
.track-title   { font-size: 1.15rem; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.track-artist  { font-size: 0.95rem; color: var(--fuchsia); font-weight: 600; margin: 0; }
.track-links   { font-size: 0.83rem; margin-bottom: 14px; }
.track-links a { color: var(--text-muted); border-bottom: 1px dashed var(--border); }
.track-links a:hover { color: var(--fuchsia); border-bottom-color: var(--fuchsia); opacity: 1; }

.audio-wrapper  { width: 100%; margin-bottom: 14px; margin-top: auto; }
.custom-audio   { width: 100%; height: 40px; outline: none; accent-color: var(--fuchsia); }

.download-area  { display: flex; justify-content: center; }
.btn-download {
    display: inline-block;
    background-color: var(--navy);
    color: #fff; padding: 10px 0; width: 75%;
    border-radius: 40px; text-decoration: none;
    font-weight: 700; font-size: 0.88rem; text-align: center;
    transition: background 0.2s, transform 0.2s;
}
.btn-download:hover { background-color: var(--navy-light); opacity: 1; transform: translateY(-1px); }

.link-contact a { color: var(--fuchsia); border-bottom: 1px dashed var(--fuchsia); }

.album-card .download-area { margin-top: auto; }

/* ==========================================================================
   11.1 СТРАНИЦА АЛЬБОМА
   ========================================================================== */
.album-hero { text-align: center; padding: 0 20px 20px; }

.album-back { text-align: center; margin-bottom: 18px; }
.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: var(--bg-white);
    color: var(--navy);
    border: 1.5px solid var(--border);
    padding: 9px 24px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.88rem;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.btn-back:hover {
    background-color: var(--fuchsia);
    color: #fff;
    border-color: var(--fuchsia);
    transform: translateY(-2px);
    box-shadow: 0 4px 14px var(--shadow-accent);
    opacity: 1;
}

/* ==========================================================================
   12. БЫСТРЫЕ ССЫЛКИ НА ТРЕКИ
   ========================================================================== */
.quick-links-container { margin-top: 0; margin-bottom: 30px; padding: 0 20px; }
.quick-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.quick-tag {
    background-color: var(--bg-white);
    color: var(--navy);
    border: 1.5px solid var(--border);
    padding: 7px 6px; border-radius: 10px;
    font-size: 0.8rem; font-weight: 600; text-align: center;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.quick-tag:hover {
    background-color: var(--fuchsia); color: #fff;
    border-color: var(--fuchsia);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px var(--shadow-accent);
    opacity: 1;
}

@media (min-width: 600px) { .quick-links { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .quick-links { grid-template-columns: repeat(5, 1fr); } }

/* ==========================================================================
   13. КНОПКА "НАВЕРХ"
   ========================================================================== */
.btn-up {
    position: fixed; bottom: 22px; right: 22px;
    background-color: var(--fuchsia); color: #fff;
    width: 46px; height: 46px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; font-weight: bold;
    box-shadow: 0 4px 16px var(--shadow-accent);
    z-index: 1000;
    opacity: 0; visibility: hidden; transform: translateY(20px);
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s, background-color 0.2s;
}
.btn-up.show { opacity: 0.85; visibility: visible; transform: translateY(0); }
.btn-up:hover { opacity: 1; background-color: var(--fuchsia-light); transform: scale(1.1); }

/* ==========================================================================
   14. COOKIE-УВЕДОМЛЕНИЕ
   ========================================================================== */
.cookie-notice {
    position: fixed;
    left: 10px; right: 10px; bottom: 10px;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    font-size: 11px;
    color: var(--text-muted);
    z-index: 9999;
    box-shadow: 0 6px 22px rgba(0,0,0,0.14);
}
.cookie-notice p {
    margin: 0;
    line-height: 1.35;
}
.cookie-notice a {
    color: var(--fuchsia);
    border-bottom: 1px dashed var(--fuchsia);
}
.cookie-notice__btn {
    background: var(--navy);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 7px 14px;
    font-size: 11px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
    width: 100%;
    transition: background 0.2s, transform 0.2s;
}
.cookie-notice__btn:hover {
    background: var(--navy-light);
    transform: translateY(-1px);
}

/* На десктопе — компактная карточка в левом нижнем углу,
   чтобы не перекрывать кнопку "наверх" справа */
@media (min-width: 900px) {
    .cookie-notice {
        left: 22px;
        right: auto;
        bottom: 22px;
        max-width: 280px;
        gap: 12px;
        padding: 18px;
        font-size: 13px;
        border-radius: 16px;
        box-shadow: 0 10px 30px var(--shadow);
    }
    .cookie-notice__btn { font-size: 13px; padding: 8px 20px; }
}

/* ==========================================================================
   15. АДАПТИВНОСТЬ
   ========================================================================== */
@media (min-width: 600px) and (max-width: 899px) {
    .tracks-grid  { grid-template-columns: repeat(2, 1fr); }
    .grid-wrapper { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
    .nav-links  { gap: 40px; font-size: 0.95rem; }
    .logo       { font-size: 1.8rem; letter-spacing: 1px; }
    .logo::after { font-size: 1.1rem; margin-left: 6px; }
    .section-title { font-size: 2.4rem; }
    .grid-wrapper  { grid-template-columns: repeat(3, 1fr); }
    .services-grid { grid-template-columns: repeat(4, 1fr); max-width: 900px; }
    .contacts-wrapper { flex-direction: row; justify-content: center; gap: 40px; }
    .contact-box  { width: 340px; }
    .tracks-grid  { grid-template-columns: repeat(3, 1fr); justify-items: stretch; }
    .track-card   { max-width: 100%; }
}
