/* Основні стилі */
body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #0d0d0d;
    color: #e0e0e0;
}

h1, h2 {
    font-family: 'Playfair Display', serif;
    color: #ffb6c1;
    text-align: center;
    margin-bottom: 25px;
    letter-spacing: 1px;
}

h1 {
    font-size: 3.5em;
    margin-bottom: 10px;
}

h2 {
    font-size: 2.8em;
    position: relative;
    padding-bottom: 15px;
}

h2::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 80px;
    height: 2px;
    background-color: #ffb6c1;
}

a {
    color: #ffb6c1;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #fff;
}

/* Стилі для посилань у заголовках послуг */
.price-category h3 a {
    color: inherit;
    text-decoration: none;
}

.price-category h3 a:hover {
    color: #fff;
}

.btn {
    display: inline-block;
    background-color: #ffb6c1;
    color: #0d0d0d;
    padding: 15px 35px;
    border-radius: 3px;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 2px;
    box-shadow: 0 4px 15px rgba(255, 182, 193, 0.3);
    transition: transform 0.3s ease, background-color 0.3s ease;
    border: 1px solid #ffb6c1;
}

.btn:hover {
    background-color: transparent;
    color: #ffb6c1;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 182, 193, 0.4);
}

/* ЗАГАЛЬНИЙ HEADER (для навігації та HERO) */
.main-header {
    background: linear-gradient(rgba(13, 13, 13, 0.8), rgba(13, 13, 13, 0.8)), url('images/hero-bg.jpg') no-repeat center center/cover;
    background-size: cover;
    color: #fff;
    min-height: 85vh;
    display: flex;
    flex-direction: column;
}

/* КОНТЕЙНЕР ДЛЯ НАВІГАЦІЇ */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    max-width: 1300px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
    border-bottom: 1px solid rgba(255, 182, 193, 0.2);
}

.logo a {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: normal;
    color: #ffb6c1;
    text-decoration: none;
    transition: color 0.3s ease;
    letter-spacing: 1.5px;
}

.logo a:hover {
    color: #fff;
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.main-nav li {
    margin-left: 35px;
}

.main-nav a {
    color: #e0e0e0;
    font-weight: 400;
    font-size: 17px;
    text-transform: uppercase;
    transition: color 0.3s ease, transform 0.3s ease;
    position: relative;
    padding-bottom: 8px;
    letter-spacing: 1px;
}

.main-nav a:hover {
    color: #ffb6c1;
    transform: translateY(-2px);
}

.main-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    background: #ffb6c1;
    left: 0;
    bottom: 0;
    transition: width 0.3s ease;
}

.main-nav a:hover::after {
    width: 100%;
}

/* HERO секція */
.hero {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
}

.hero-content {
    animation: fadeIn 2s ease-in-out;
    max-width: 900px;
}

.hero-content p {
    font-size: 1.3em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Секції контенту */
.section {
    padding: 60px 30px;
    max-width: 1100px;
    margin: 50px auto;
    background: #1a1a1a;
    border-radius: 5px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.dark-section {
    background-color: #121212;
}

/* Розділ "Про студію" */
.section-content {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    justify-content: center;
    font-size: 1.1em;
}

.about-photo {
    max-width: 350px;
    height: auto;
    border-radius: 5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Розділ "Мої сертифікати" */
.sert-carousel {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: max-content;
    touch-action: pan-y; /* Allow vertical scrolling, block horizontal */
}

.sert-carousel img {
    height: 300px;
    width: auto;
    object-fit: contain;
    margin-right: 20px;
    border-radius: 5px;
}

/* Розділ "Портфоліо" */
.carousel-container {
    position: relative;
    overflow-x: hidden; /* Prevent horizontal scrollbar */
    padding: 30px 0;
    touch-action: pan-y; /* Allow vertical scrolling on mobile */
}

.carousel {
    display: flex;
    overflow-x: hidden;
    white-space: nowrap;
    padding: 0;
    margin: 0;
    transition: transform 0.5s ease-in-out;
    width: max-content;
    touch-action: pan-y; /* Allow vertical scrolling, block horizontal */
}

.carousel img, .carousel .instagram-embed-wrapper {
    display: inline-block !important;
    width: 300px;
    height: 400px;
    object-fit: cover;
    margin-right: 20px;
    border-radius: 5px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
    border: 1px solid rgba(255, 182, 193, 0.1);
    vertical-align: top;
    box-sizing: border-box;
    flex-shrink: 0;
}

.carousel img:hover, .carousel .instagram-embed-wrapper:hover {
    transform: scale(1.02);
}

.instagram-embed-wrapper {
    position: relative;
    width: 300px;
    height: 400px;
    overflow: hidden;
    box-sizing: border-box;
    flex-shrink: 0;
}

.instagram-media {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 182, 193, 0.8);
    color: #1a1a1a;
    border: none;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    padding: 10px 15px;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.carousel-arrow:hover {
    background: #fff;
}

.carousel-arrow.prev, .carousel-arrow.prev-sert {
    left: 10px;
}

.carousel-arrow.next, .carousel-arrow.next-sert {
    right: 10px;
}

.carousel-dots-container, .sert-dots-container {
    text-align: center;
    margin-top: 20px;
}

.carousel-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: #555;
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.carousel-dot.active {
    background-color: #ffb6c1;
    transform: scale(1.2);
}

/* Розділ "Переваги" */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    text-align: center;
}

.advantage-item {
    background: #1a1a1a;
    padding: 30px;
    border-radius: 5px;
    border-left: 2px solid #ffb6c1;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.advantage-item h3 {
    font-family: 'Playfair Display', serif;
    color: #ffb6c1;
    font-size: 1.4em;
    margin-bottom: 10px;
}

.advantage-item p {
    font-size: 1em;
    color: #c0c0c0;
}

.advantage-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Розділ "Послуги та ціни" */
.price-grid-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    align-items: stretch;
}

.price-category {
    background: #1a1a1a;
    border-radius: 8px;
    padding: 30px;
    height: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.price-category h3 {
    font-family: 'Playfair Display', serif;
    color: #ffb6c1;
    font-size: 1.8em;
    text-align: center;
    border-bottom: 1px solid rgba(255, 182, 193, 0.5);
    padding-bottom: 15px;
    margin-bottom: 25px;
}

.price-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex-grow: 1;
}

.price-item {
    background: #121212;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 15px;
    align-items: center;
}

.price-item:hover {
    transform: translateY(-3px);
}

.price-item h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2em;
    color: #ffb6c1;
    border-bottom: none;
    padding-bottom: 0;
    margin: 0;
    text-align: left;
}

.price-item p {
    font-size: 1.1em;
    margin: 0;
    font-weight: bold;
    color: #e0e0e0;
    text-align: right;
}

.price-item strong {
    color: #fff;
}

.special-offer {
    background: #ffb6c1;
    color: #0d0d0d;
    padding: 30px;
    border: none;
    box-shadow: 0 8px 25px rgba(255, 182, 193, 0.4);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    box-sizing: border-box;
}

.special-offer h3 {
    color: #0d0d0d;
    border-bottom: none;
    margin-bottom: 10px;
}

.special-offer p {
    font-weight: bold;
    font-size: 1.3em;
    color: #0d0d0d;
    text-align: center;
}

/* Відгуки */
.review {
    background: #1a1a1a;
    padding: 30px;
    border-radius: 5px;
    border-left: 2px solid #ffb6c1;
    margin-bottom: 20px;
    font-size: 1.1em;
}

blockquote {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    margin: 0 0 15px;
    position: relative;
    font-size: 1.2em;
    line-height: 1.8;
}

blockquote::before {
    content: '“';
    font-size: 80px;
    position: absolute;
    left: -20px;
    top: -30px;
    color: rgba(255, 182, 193, 0.15);
    z-index: 0;
}

.review p {
    text-align: right;
    font-weight: bold;
    color: #c0c0c0;
}

/* Питання та відповіді */
.faq-item {
    background: #1a1a1a;
    padding: 25px;
    border-radius: 5px;
    margin-bottom: 15px;
    border-left: 2px solid #ffb6c1;
}

.faq-item h3 {
    margin-top: 0;
    color: #ffb6c1;
    font-size: 1.3em;
    font-family: 'Playfair Display', serif;
}

.faq-item p {
    font-size: 1em;
    color: #c0c0c0;
}

/* Футер */
footer {
    text-align: center;
    padding: 30px;
    background: #080808;
    color: #b0b0b0;
    margin-top: 60px;
    font-size: 0.9em;
    border-top: 1px solid rgba(255, 182, 193, 0.1);
}

/* Медіа-запити для адаптивності */
@media (max-width: 992px) {
    h1 { font-size: 3em; }
    h2 { font-size: 2.2em; }
    .hero-content p { font-size: 1.2em; }
    .carousel img, .carousel .instagram-embed-wrapper { width: 250px; height: 333px; }
    .header-container { padding: 15px 30px; }
    .logo a { font-size: 28px; }
    .main-nav li { margin-left: 25px; }
    .main-nav a { font-size: 16px; }
    .carousel-arrow { font-size: 20px; padding: 8px 12px; }
    .special-offer { height: auto; }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        padding: 15px 20px;
        border-bottom: none;
    }

    .main-nav ul {
        flex-direction: column;
        margin-top: 15px;
        align-items: center;
    }

    .main-nav li {
        margin: 5px 0;
    }

    .main-nav a::after {
        display: none;
    }
    .main-nav a:hover {
        transform: none;
    }

    h1 { font-size: 2.5em; }
    h2 { font-size: 2em; }
    .hero-content p { font-size: 1.1em; }
    .btn { padding: 12px 25px; font-size: 0.9em; }

    .carousel img, .carousel .instagram-embed-wrapper { width: 200px; height: 266px; margin-right: 15px;}
    .sert-carousel img { height: 180px; }
    .section { padding: 40px 20px; margin: 30px auto; }
    .section-content { gap: 20px; }
    .about-photo { max-width: 100%; }
    .advantage-item, .review, .faq-item { padding: 20px; }
    .price-category { padding: 20px; }
    .price-item { 
        padding: 15px;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
        text-align: left;
    }
    .price-item h4 { 
        font-size: 1.1em; 
        text-align: left; 
        word-break: break-word; /* Break long words */
    }
    .price-item p { 
        font-size: 1em; 
        text-align: left; 
    }
    
    .price-grid-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .carousel-arrow, .prev-sert, .next-sert {
        display: none; /* Hide arrows on mobile */
    }
}

@media (max-width: 480px) {
    .logo a { font-size: 24px; }
    .main-nav a { font-size: 15px; }
    .section { padding: 25px 15px; margin: 25px auto; }
    h1 { font-size: 2em; }
    h2 { font-size: 1.6em; }
    h2::after { width: 60px; }
    .hero-content p { font-size: 1em; }
    .btn { padding: 10px 20px; font-size: 0.8em; letter-spacing: 1px; }
    .carousel img, .carousel .instagram-embed-wrapper { height: 200px; margin-right: 10px; width: 150px; }
    .sert-carousel img { height: 150px; }
    blockquote::before { font-size: 60px; left: -10px; top: -20px; }
    .price-category h3 { font-size: 1.5em; }
    .price-item h4 { font-size: 1em; }
    .price-item p { font-size: 0.9em; }
    .special-offer { padding: 20px; }
    .special-offer h3 { font-size: 1.5em; }
    .special-offer p { font-size: 1.1em; }
}