/* --- ЗМІННІ КОЛЬОРІВ --- */
:root {
    --bg-color: #ffffff;
    --bg-secondary: #fdf8f5;        
    --accent-pink: #eecbc6;         
    --accent-beige: #d4a373;        
    --text-dark: #4a4a4a;
    --text-light: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

/* --- ХЕДЕР --- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background-color: rgba(255, 255, 255, 0.95);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent-beige);
    letter-spacing: 1px;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a:hover {
    color: var(--accent-pink);
}

/* --- HERO SECTION --- */
.hero {
    height: 100vh;
    /* Ось ваше старе посилання, яке працює: */
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('https://i.postimg.cc/cJGpd92G/osnova2.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--text-light);
    padding: 0 20px;
}
.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 600px;
}

.btn {
    padding: 15px 40px;
    background-color: var(--accent-pink);
    color: var(--text-dark);
    border-radius: 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid transparent;
}

.btn:hover {
    background-color: transparent;
    border: 2px solid var(--accent-pink);
    color: var(--text-light);
}

/* --- ЗАГАЛЬНІ СЕКЦІЇ --- */
section {
    padding: 80px 10%;
}

.about, .booking {
    background-color: var(--bg-secondary);
    text-align: center;
}

h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--accent-beige);
    margin-bottom: 40px;
}

/* --- ПОСЛУГИ --- */
.cards-container {
    display: grid;
    /* Адаптивна сітка: тепер буде по 2 в ряд на середніх екранах і по 4 на великих */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.card {
    background: #d8b5da; /* Твій колір */
    border: 1px solid var(--accent-pink);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease;
    box-shadow: 0 5px 15px rgba(212, 163, 115, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Щоб кнопки були на одній лінії */
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(212, 163, 115, 0.2);
}

.card h3 {
    margin-bottom: 15px;
    color: var(--text-dark);
}

.price {
    display: block;
    font-size: 1.5rem;
    color: #fff; /* Змінив на білий для контрасту на фоні #d8b5da, або поверни accent-beige */
    font-weight: bold;
    margin: 15px 0;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.link-btn {
    color: #fff;
    font-weight: bold;
    background: rgba(255,255,255,0.2);
    padding: 10px;
    border-radius: 20px;
    margin-top: auto;
}
.link-btn:hover {
    background: rgba(255,255,255,0.4);
}

/* --- ДОДАТКОВІ ПОСЛУГИ (НОВЕ) --- */
.extra-services-wrapper {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.extra-services-btn {
    background-color: transparent;
    border: 2px solid var(--accent-beige);
    color: var(--text-dark);
    padding: 12px 30px;
    font-size: 1rem;
    border-radius: 30px;
    cursor: pointer;
    transition: 0.3s;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0 auto;
}

.extra-services-btn:hover {
    background-color: var(--accent-beige);
    color: white;
}

.extra-services-btn span {
    font-size: 0.8rem;
    transition: transform 0.3s;
}

.extra-services-btn.active span {
    transform: rotate(180deg); /* Поворот стрілочки */
}

.extra-services-list {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out;
    background: #fff;
    border-radius: 15px;
    margin-top: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.extra-services-list ul {
    list-style: none;
    padding: 20px;
    text-align: left;
}

.extra-services-list li {
    padding: 10px 0;
    border-bottom: 1px dashed #eee;
    display: flex;
    justify-content: space-between;
}

.extra-services-list li:last-child {
    border-bottom: none;
}

.extra-services-list li span {
    font-weight: bold;
    color: var(--accent-beige);
}

/* --- ФОРМА --- */
.booking form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.subtitle {
    margin-bottom: 30px;
}

input, select, textarea {
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-family: inherit;
    outline: none;
    width: 100%;
}

input:focus, textarea:focus {
    border-color: var(--accent-beige);
}

.submit-btn {
    background-color: var(--accent-beige);
    color: white;
    padding: 15px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: 0.3s;
}

.submit-btn:hover {
    background-color: #b08968;
}

/* --- ФУТЕР --- */
footer {
    background-color: var(--accent-pink);
    color: var(--text-dark);
    padding: 50px 10%;
    text-align: center;
}

.social-links {
    margin: 20px 0;
}

.social-links a {
    margin: 0 10px;
    font-weight: bold;
}

.copyright {
    font-size: 0.8rem;
    margin-top: 20px;
}

/* --- МОБІЛЬНА АДАПТАЦІЯ --- */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    nav ul { display: none; }
    .about-container {
        flex-direction: column;
        text-align: center;
    }
    .master-photo {
        width: 200px;
        height: 200px;
    }
}

/* --- СТИЛІ ДЛЯ ФОТО МАЙСТРА --- */
.about-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
    text-align: left;
}

.master-photo {
    width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid var(--accent-pink);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.about-text {
    max-width: 500px;
}

/* --- СТИЛІ ДЛЯ ГАЛЕРЕЇ РОБІТ --- */
.portfolio {
    background-color: #fff;
    text-align: center;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 15px;
    padding: 20px 0;
}

.gallery img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.gallery img:hover {
    transform: scale(1.03);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.price-note {
    text-align: center;
    margin-top: 40px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    font-style: italic;
}

/* --- МОДАЛЬНЕ ВІКНО (Спливаюче вікно успіху) --- */
.modal {
    display: none; /* Сховано за замовчуванням */
    position: fixed;
    z-index: 2000; /* Щоб було поверх всього */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5); /* Темний фон */
    backdrop-filter: blur(5px); /* Розмиття фону */
    animation: fadeIn 0.3s;
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 30px;
    border: 1px solid #888;
    width: 90%;
    max-width: 400px;
    border-radius: 20px;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    animation: slideIn 0.3s;
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    right: 20px;
    top: 10px;
    cursor: pointer;
}

.close-modal:hover,
.close-modal:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.modal-icon {
    font-size: 50px;
    margin-bottom: 20px;
}

.modal-content h3 {
    color: var(--accent-beige);
    margin-bottom: 15px;
}

.modal-btn-ok {
    background-color: var(--accent-pink);
    color: var(--text-dark);
    border: none;
    padding: 10px 30px;
    border-radius: 20px;
    font-weight: bold;
    margin-top: 20px;
    cursor: pointer;
}
.modal-btn-ok:hover {
    background-color: #d6aeb4;
}

/* Анімації для вікна */
@keyframes fadeIn {
    from {opacity: 0} 
    to {opacity: 1}
}
@keyframes slideIn {
    from {transform: translateY(-50px); opacity: 0;} 
    to {transform: translateY(0); opacity: 1;}
}