/* Основні стилі для сайту студії краси */

/* Скидання стилів */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Типографія */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #ffffff;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 { font-size: 3rem; color: #000000; }
h2 { font-size: 2.5rem; color: #000000; }
h3 { font-size: 2rem; color: #000000; }
h4 { font-size: 1.5rem; color: #000000; }
h5 { font-size: 1.25rem; color: #000000; }
h6 { font-size: 1rem; color: #000000; }

p {
    margin-bottom: 1rem;
    color: #333333;
}

a {
    color: #046855;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #034738;
}

/* Кнопки */
.btn {
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, #046855 0%, #034738 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(4, 104, 85, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(4, 104, 85, 0.3);
    color: white;
}

.btn-outline-primary {
    border: 2px solid #046855;
    color: #046855;
    background: transparent;
}

.btn-outline-primary:hover {
    background: #046855;
    color: white;
    transform: translateY(-2px);
}

/* Картки */
.card {
    border: 1px solid #e8e8e8;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    background: white;
}

.card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transform: translateY(-5px);
    border-color: #d0d0d0;
}

.card-img-top {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #000000;
}

.card-text {
    color: #555555;
    margin-bottom: 1rem;
}

/* Навігація */
.navbar {
    padding: 1rem 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid #f0f0f0;
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: 700;
    color: #046855 !important;
}

.navbar-brand img {
    height: 40px;
    margin-right: 10px;
}

.nav-link {
    font-weight: 500;
    color: #000000 !important;
    margin: 0 5px;
    padding: 8px 15px !important;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(4, 104, 85, 0.1);
    color: #046855 !important;
}

/* Герой секція */
.hero-section {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.9) 100%),
                url('../images/hero-bg.jpg') center/cover no-repeat;
    color: #000000;
    padding: 120px 0;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
}

.hero-section h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease;
    color: #000000;
}

.hero-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.2s both;
    color: #333333;
}

/* Секції */
.section {
    padding: 80px 0;
    background-color: #ffffff;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    color: #000000;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #046855;
}

/* Сервіс картки */
.service-card {
    height: 100%;
    border: 1px solid #eee;
    background: white;
}

.service-card .card-img-top {
    height: 200px;
}

.service-card .price {
    font-size: 1.5rem;
    font-weight: 600;
    color: #046855;
}

/* Майстер картки */
.master-card {
    text-align: center;
    background: white;
}

.master-card .card-img-top {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 20px auto;
    border: 5px solid white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Відгуки */
.review-card {
    border-left: 4px solid #046855;
    background: white;
}

.rating-stars {
    color: #046855;
    font-size: 1.2rem;
}

/* Фотогалерея */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    border: 1px solid #f0f0f0;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* Форми */
.form-control {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: white;
    color: #333333;
}

.form-control:focus {
    border-color: #046855;
    box-shadow: 0 0 0 0.2rem rgba(4, 104, 85, 0.15);
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #000000;
}

/* Футер */
.footer {
    background: #000000;
    color: white;
    padding: 60px 0 30px;
}

.footer h5 {
    color: #ffffff;
    margin-bottom: 20px;
}

.footer a {
    color: #cccccc;
}

.footer a:hover {
    color: #046855;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #046855;
    transform: translateY(-3px);
}

/* Анімації */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in {
    animation: fadeIn 1s ease;
}

.fade-in-up {
    animation: fadeInUp 1s ease;
}

.fade-in-left {
    animation: fadeInLeft 1s ease;
}

.fade-in-right {
    animation: fadeInRight 1s ease;
}

/* Адаптивність */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.75rem; }
    h4 { font-size: 1.25rem; }
    
    .hero-section {
        padding: 80px 0;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .navbar-nav {
        text-align: center;
        padding: 10px 0;
    }
    
    .nav-link {
        margin: 5px 0;
    }
}

@media (max-width: 576px) {
    .btn {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .card {
        margin-bottom: 20px;
    }
}

/* Утиліти */
.text-primary { color: #046855 !important; }
.text-secondary { color: #034738 !important; }
.bg-primary { background-color: #046855 !important; }
.bg-secondary { background-color: #034738 !important; }

.mt-6 { margin-top: 4rem !important; }
.mb-6 { margin-bottom: 4rem !important; }
.py-6 { padding-top: 4rem !important; padding-bottom: 4rem !important; }

.rounded-lg { border-radius: 15px !important; }
.rounded-xl { border-radius: 20px !important; }

.shadow-sm { box-shadow: 0 2px 8px rgba(0,0,0,0.05) !important; }
.shadow-md { box-shadow: 0 5px 15px rgba(0,0,0,0.08) !important; }
.shadow-lg { box-shadow: 0 10px 30px rgba(0,0,0,0.12) !important; }

/* Кастомні класи для студії краси */
.beauty-badge {
    background: linear-gradient(135deg, #046855, #034738);
    color: white;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
}

.featured-icon {
    width: 60px;
    height: 60px;
    background: rgba(4, 104, 85, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.featured-icon i {
    font-size: 1.5rem;
    color: #046855;
}

.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #046855;
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
}

.timeline-item:before {
    content: '';
    position: absolute;
    left: -36px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #046855;
    border: 3px solid white;
    box-shadow: 0 0 0 3px rgba(4, 104, 85, 0.2);
}

/* Завантажувач */
.loader {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(4, 104, 85, 0.3);
    border-radius: 50%;
    border-top-color: #046855;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Сповіщення */
.alert-beauty {
    background: linear-gradient(135deg, #f0f9f7, #ffffff);
    border: 1px solid #b8e1d9;
    border-left: 4px solid #046855;
    color: #333333;
    border-radius: 8px;
}

/* Прогрес бар */
.progress-beauty {
    height: 8px;
    background-color: #e0f2ef;
    border-radius: 4px;
    overflow: hidden;
}

.progress-beauty-bar {
    height: 100%;
    background: linear-gradient(135deg, #046855, #034738);
    border-radius: 4px;
    transition: width 0.3s ease;
}