/* --- 1. ГЛОБАЛЬНІ СТИЛІ ТА ЗМІННІ --- */
:root {
    --primary-pink: #ff2d8c;
    --saturated-pink: #ff2d8c;
    --deep-berry: #4a2a2f;
    --soft-pink-bg: #fff0f5;
    --white: #ffffff;
    --overlay: rgba(0, 0, 0, 0.4); 
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 25px;
}

/* --- 2. ШАПКА ТА НАВІГАЦІЯ --- */
header { 
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    position: fixed; 
    width: 100%; 
    z-index: 1000; 
    border-bottom: 2px solid var(--primary-pink);
    box-shadow: 0 2px 10px rgba(141, 93, 102, 0.1);
}

nav { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

.nav-links { 
    display: flex; 
    list-style: none; 
}

.nav-links li { 
    margin-left: 25px; 
}

.nav-links a { 
    color: var(--deep-berry); 
    text-decoration: none;
    font-weight: 700; 
    text-transform: uppercase; 
    font-size: 13px; 
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 5px;
    transition: 0.3s;
}

.nav-links a:hover { 
    color: var(--primary-pink); 
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--saturated-pink);
    transition: 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

/* --- 3. ЛОГОТИП (CSS Ring Logo) --- */
.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.css-logo {
    width: 50px; 
    height: 50px;
    border: 2px solid var(--primary-pink);
    border-radius: 50%;
    display: flex; 
    align-items: center; 
    justify-content: center;
    position: relative; 
}

.ring-detail {
    position: absolute;
    top: 2px;
    right: 8px;
    width: 6px;
    height: 6px;
    background: var(--saturated-pink);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--saturated-pink);
}

.logo-divider {
    width: 1px;
    height: 35px;
    background-color: var(--deep-berry); 
    opacity: 0.4;
    margin: 0 5px;
}

.logo-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1;
}

.word-top {
    font-size: 22px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--deep-berry);
}

.horizontal-line {
    width: 100%;
    height: 1px;
    background-color: var(--primary-pink);
    margin: 4px 0;
    opacity: 0.6;
}

.word-bottom {
    font-size: 11px;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 5px;
    color: var(--deep-berry);
}

/* --- 4. HERO SECTION --- */
.hero { 
    height: 100vh; 
    background: linear-gradient(var(--overlay), var(--overlay)), 
                url('img/Head.PNG') center/cover no-repeat;
    background-color: var(--deep-berry);
    display: flex; 
    align-items: center; 
    justify-content: center; 
    text-align: center;
}

.hero-content { 
    max-width: 800px; 
    color: white; 
}

.hero h1 { 
    font-size: 4rem; 
    margin-bottom: 20px; 
    font-weight: 700;
    letter-spacing: 2px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.6);
}

.hero p { 
    font-size: 1.4rem; 
    margin-bottom: 35px; 
    opacity: 0.95;
    text-shadow: 1px 1px 10px rgba(0,0,0,0.3);
}

.btn-main { 
    display: inline-block; 
    padding: 16px 45px; 
    background: var(--saturated-pink); 
    color: var(--white); 
    text-decoration: none; 
    border-radius: 4px; /* Пряміші кути для преміальності */
    font-weight: 700; 
    text-transform: uppercase; 
    letter-spacing: 1.5px;
    transition: 0.4s; 
    border: 2px solid var(--saturated-pink);
    box-shadow: 0 4px 15px rgba(255, 45, 140, 0.4);
}

.btn-main:hover { 
    background: transparent; 
    transform: translateY(-3px); 
    box-shadow: 0 6px 20px rgba(255, 45, 140, 0.6);
}

/* --- 5. КАТАЛОГ ТА ТОВАРИ --- */
.section-title { 
    text-align: center; 
    margin: 80px 0 50px; 
    font-size: 2.5rem; 
    color: var(--deep-berry); 
}

#product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.product-card {
    background: var(--white);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    border: 1px solid #fceef2;
    transition: 0.3s ease;
    display: flex; 
    flex-direction: column;
    height: 100%; 
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(141, 93, 102, 0.1);
    border-color: var(--primary-pink);
}

.product-img {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 15px;
}

.product-img img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    transition: 0.5s ease;
}

.product-card:hover .product-img img {
    transform: scale(1.05);
}

.product-desc {
    font-size: 10px;
    color: #a0a0a0;
    margin: 5px 0 15px 0;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.price {
    margin-top: auto;
    font-weight: bold;
    color: var(--primary-pink) !important;
    font-size: 1.4rem !important;
    padding-top: 15px;
}

.order-btn {
    margin-top: 15px;
    width: 100%;
    padding: 14px;
    background: var(--deep-berry);
    color: var(--white);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
    font-weight: 600;
    text-transform: uppercase;
}

.order-btn:hover {
    background: var(--primary-pink);
}

/* --- 6. ФІЛЬТРИ --- */
.filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 12px 25px;
    background: transparent;
    border: 2px solid var(--primary-pink);
    color: var(--deep-berry);
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    text-transform: uppercase;
}

.filter-btn.active, .filter-btn:hover {
    background-color: var(--primary-pink);
    color: var(--white);
}

/* --- 7. FAQ ТА ІНФО --- */
.info-page { padding-top: 120px; padding-bottom: 80px; }
.info-section { margin-bottom: 60px; }

.accordion-header-main {
    background-color: #fceef2;
    padding: 15px 25px;
    border-radius: 12px;
    font-weight: 700;
    color: var(--deep-berry);
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 30px 0 15px 0;
    text-transform: uppercase;
}

.accordion-item {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    margin-bottom: 10px;
    overflow: hidden;
}

.accordion-question {
    padding: 18px 25px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--deep-berry);
}

.accordion-item.active .accordion-answer {
    padding: 15px 25px 25px 25px;
    max-height: 500px;
}

.accordion-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: 0.3s ease-out;
    color: #666;
    line-height: 1.6;
}

/* Перевертання стрілочки при відкритті */
.accordion-item.active .arrow {
    transform: rotate(180deg);
}

.arrow {
    transition: transform 0.3s ease;
}

/* --- 8. КОНТАКТНІ КНОПКИ ТА МОДАЛКА --- */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Трохи м'якше затемнення */
    backdrop-filter: blur(4px); /* Розмиття фону */
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    padding: 40px 30px 30px;
    border-radius: 16px;
    text-align: center;
    width: 90%;
    max-width: 360px;
    position: relative;
    box-shadow: 0 15px 35px rgba(74, 42, 47, 0.2); /* Глибока тінь в тон бренду */
    animation: modalFadeIn 0.3s ease-out forwards; /* Анімація появи */
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(20px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    color: #a0a0a0;
    cursor: pointer;
    line-height: 1;
    transition: 0.3s;
}

.close-modal:hover {
    color: var(--primary-pink);
    transform: rotate(90deg);
}

.modal-content h3 {
    color: var(--deep-berry);
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.modal-product-name {
    font-weight: 700;
    color: var(--primary-pink);
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.modal-prompt {
    font-size: 13px;
    color: #666;
    margin-bottom: 25px;
    line-height: 1.4;
}

.modal-buttons {
    display: flex;
    flex-direction: column; /* Робимо кнопки списком одна під одною */
    gap: 12px;
}

.modal-btn {
    display: block;
    padding: 14px 20px;
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 1px;
    transition: 0.3s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
    color: white;
}

/* Фірмові кольори кнопок */
.btn-tg { background-color: #2AABEE; }
.btn-vb { background-color: #7360f2; }
.btn-ig { background: linear-gradient(45deg, #f09433 0%, #dc2743 50%, #bc1888 100%); }

/* --- 9. ФУТЕР --- */
.main-footer {
    background-color: var(--white);
    padding: 80px 0 0;
    border-top: 1px solid #eee;
    margin-top: 100px;
}

/* --- ВИПРАВЛЕНИЙ ОПИС У ФУТЕРІ --- */
.footer-desc {
    margin: 10px 0 20px 0;    /* Відступи: 10px зверху, 20px знизу */
    font-size: 13px;          /* Менший розмір, як у інших підписів */
    line-height: 1.5;         /* Комфортний міжрядковий інтервал */
    color: #888;              /* Світло-сірий колір для другорядного тексту */
    max-width: 260px;         /* Обмежуємо ширину, щоб текст не розтягувався */
    font-weight: 400;         /* Звичайна товщина (не жирний) */
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 60px;
}

.footer-col h4 {
    text-transform: uppercase;
    font-size: 14px;
    margin-bottom: 25px;
    color: var(--deep-berry);
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a { text-decoration: none; color: #666; transition: 0.3s; }
.footer-col ul li a:hover { color: var(--primary-pink); padding-left: 5px; }

.footer-socials { display: flex; gap: 15px; }
.footer-socials a {
    width: 35px; height: 35px; border: 1px solid #ddd; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    text-decoration: none; color: var(--deep-berry); transition: 0.3s;
}

.footer-bottom { background-color: #f9f9f9; padding: 25px 0; border-top: 1px solid #eee; }
.bottom-flex { display: flex; justify-content: space-between; align-items: center; }

/* --- 10. АДАПТИВНІСТЬ --- */
@media (max-width: 768px) {
    .burger { display: block; position: relative; width: 30px; height: 20px; cursor: pointer; z-index: 1001; }
    .burger span, .burger::before, .burger::after {
        content: ''; position: absolute; width: 100%; height: 2px; background: var(--deep-berry); transition: 0.3s;
    }
    .burger::before { top: 0; }
    .burger span { top: 9px; }
    .burger::after { bottom: 0; }
    
    .burger.active::before { transform: rotate(45deg); top: 9px; }
    .burger.active span { opacity: 0; }
    .burger.active::after { transform: rotate(-45deg); bottom: 9px; }

    .nav-links {
        position: fixed; top: 0; right: -100%; width: 100%; height: 100vh;
        background: var(--white); flex-direction: column; justify-content: center;
        align-items: center; transition: 0.4s; z-index: 1000;
    }

    .nav-links.active { right: 0; }
    .nav-links li { margin: 15px 0; }
    .hero h1 { font-size: 2.2rem; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-socials { justify-content: center; }
    .bottom-flex { flex-direction: column; gap: 15px; }
    .info-page { padding-top: 100px !important; }
}

@media (min-width: 769px) {
    .burger { display: none; }
}