* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Poppins", sans-serif;
    background: #f8ecef;
    color: #333;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

button,
input,
textarea,
select {
    font: inherit;
}

.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    padding: 22px 40px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.logo {
    flex-shrink: 0;
}

.logo a {
    display: inline-block;
    text-decoration: none;
}

.logo-text {
    font-family: "Bodoni Moda", serif;
    font-size: 56px;
    font-weight: 700;
    line-height: 1;
    color: #e89ab0;
    letter-spacing: -1px;
    text-transform: lowercase;
    transition: color 0.3s ease, transform 0.3s ease;
}

.logo-text:hover {
    color: #d97e9a;
    transform: translateY(-1px);
}

.menu {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 34px;
    list-style: none;
}

.menu li {
    position: relative;
    display: flex;
    align-items: center;
}

.menu li a {
    display: inline-block;
    padding: 10px 0;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    letter-spacing: 2px;
    line-height: 1;
    transition: color 0.3s ease;
}

.menu li a:hover,
.menu li a.active {
    color: #e89ab0;
}

.dropdown {
    position: relative;
}

.dropdown > a {
    display: inline-block;
    padding: 10px 0;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 14px);
    left: 0;
    min-width: 280px;
    padding: 16px 0;
    list-style: none;
    background: #fff;
    border: 1px solid #f0d9e1;
    border-radius: 18px;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: 0.25s ease;
    z-index: 1100;
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu li a {
    display: block;
    padding: 16px 24px;
    color: #555;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 1px;
    line-height: 1.4;
}

.dropdown-menu li a:hover {
    color: #e89ab0;
    background: transparent;
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

@media (max-width: 820px) {
    .dropdown-menu {
        top: calc(100% + 8px);
    }

    .dropdown:hover .dropdown-menu,
    .dropdown:focus-within .dropdown-menu {
        opacity: 0;
        visibility: hidden;
        transform: translateY(8px);
    }

    .dropdown.open .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    border: none;
    border-radius: 999px;
    background: #e89ab0;
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    transition: 0.3s ease;
}

.btn:hover {
    background: #d97e9a;
    transform: translateY(-2px);
}

.btn-delete {
    background: #f3d7dd;
    color: #5b3a42;
}

.footer {
    margin-top: 40px;
    padding: 22px;
    text-align: center;
    background: #fff;
    border-top: 1px solid #eee;
    font-size: 14px;
    color: #666;
}

.section-anchor {
    position: relative;
    top: -120px;
}

.hero-slider {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 82vh;
    padding: 40px 20px;
    overflow: hidden;
    text-align: center;
}

.slides {
    position: absolute;
    inset: 0;
}

.slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease;
}

.slide.active {
    opacity: 1;
}

.hero-slider::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.58), rgba(248, 236, 239, 0.72));
    z-index: 1;
}

.hero-fallback {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #f7e8ed, #f3dbe3);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.hero-subtitle {
    margin-bottom: 18px;
    font-size: 20px;
    color: #6b5d62;
    letter-spacing: 1px;
}

.hero-content h1 {
    margin-bottom: 28px;
    font-size: 82px;
    color: #e89ab0;
    letter-spacing: 6px;
}

.home-intro {
    position: relative;
    z-index: 3;
    max-width: 1200px;
    margin: -70px auto 0;
    padding: 0 40px;
}

.home-intro-card,
.home-cta-card,
.info-block,
.admin-gallery-card {
    background: rgba(255, 255, 255, 0.45);
    box-shadow: 0 8px 24px rgba(232, 154, 176, 0.08);
}

.home-intro-card {
    padding: 34px 38px;
    text-align: center;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(6px);
    border-radius: 28px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
}

.home-intro-card h2 {
    margin-bottom: 16px;
    font-size: 34px;
    color: #e89ab0;
}

.home-intro-card p {
    font-size: 18px;
    line-height: 1.9;
    color: #555;
}

.preview {
    max-width: 1300px;
    margin: 0 auto;
    padding: 90px 40px 60px;
    text-align: center;
}

.preview h2 {
    margin-bottom: 14px;
    font-size: 44px;
    color: #e89ab0;
    letter-spacing: 2px;
}

.preview-text {
    margin-bottom: 40px;
    font-size: 18px;
    color: #666;
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
    margin-bottom: 34px;
}

.preview-card {
    display: block;
    padding: 0;
    overflow: visible;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    transition: none;
}

.preview-card:hover {
    transform: none;
    box-shadow: none;
}

.preview-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 20px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.preview-card:hover img {
    transform: scale(1.02);
    opacity: 0.95;
}

.home-cta {
    max-width: 1000px;
    margin: 0 auto;
    padding: 30px 40px 90px;
}

.home-cta-card {
    padding: 44px 32px;
    text-align: center;
    background: linear-gradient(135deg, #f7e8ed, #f2d8e1);
    border-radius: 30px;
    box-shadow: 0 10px 24px rgba(232, 154, 176, 0.12);
}

.home-cta-card h2 {
    margin-bottom: 14px;
    font-size: 36px;
    color: #d9849d;
}

.home-cta-card p {
    margin-bottom: 24px;
    font-size: 18px;
    color: #5e5659;
}

.price-section,
.info-section,
.contact-section,
.gallery-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 40px;
}

.price-section,
.info-section {
    min-height: 80vh;
}

.gallery-section {
    max-width: 1300px;
}

.price-title,
.info-title,
.contact-title {
    margin-bottom: 60px;
    text-align: center;
    font-size: 52px;
    color: #e89ab0;
    letter-spacing: 3px;
}

.contact-title {
    font-size: 48px;
}

.price-category {
    width: fit-content;
    margin: 0 auto 50px;
    padding: 16px 60px;
    background: #f3dbe3;
    color: #c46f8d;
    font-size: 28px;
    font-weight: 600;
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(232, 154, 176, 0.15);
}

.price-subcategory {
    margin: 35px 0 20px;
    font-size: 24px;
    font-weight: 600;
    color: #d98fa7;
    text-align: left;
}

.price-list {
    display: flex;
    flex-direction: column;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 32px 0;
    border-bottom: 1px solid #ddd;
}

.service {
    display: block;
    font-size: 20px;
    font-weight: 600;
    color: #111;
}

.price {
    white-space: nowrap;
    font-size: 22px;
    font-weight: 600;
    color: #333;
}

.price-desc {
    margin-top: 10px;
    font-size: 16px;
    line-height: 1.6;
    color: #666;
}

.price-divider {
    height: 60px;
}

.nail-note {
    margin-top: 30px;
    padding-top: 10px;
}

.nail-note p,
.extension-note p,
.price-note-row p {
    font-size: 18px;
    line-height: 1.8;
    color: #444;
}

.nail-note p,
.price-note-row p {
    margin-bottom: 10px;
}

.extension-note {
    margin-top: 40px;
}

.price-note-row {
    padding: 8px 0 28px;
}

.second-note {
    padding-top: 50px;
}

.info-block {
    margin-bottom: 60px;
    padding: 40px;
    border-radius: 24px;
    scroll-margin-top: 140px;
}

.info-block h2 {
    margin-bottom: 28px;
    font-size: 38px;
    font-weight: 600;
    color: #222;
}

.info-block p {
    margin-bottom: 28px;
    font-size: 18px;
    line-height: 2;
    color: #444;
}

.info-content {
    white-space: pre-line;
}

.info-list {
    margin-bottom: 30px;
    padding-left: 22px;
}

.info-list li {
    margin-bottom: 10px;
    font-size: 18px;
    line-height: 2;
    color: #444;
}

.info-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin: -20px 0 40px;
}

.info-nav a {
    display: inline-block;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid #f0d9e1;
    border-radius: 999px;
    color: #555;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: 0.3s ease;
}

.info-nav a:hover {
    color: #e89ab0;
    background: #fff;
    transform: translateY(-2px);
}

.contact-content {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 60px;
}

.contact-info {
    flex: 1 1 280px;
    font-size: 18px;
    line-height: 1.8;
    color: #444;
}

.map-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 24px;
    background: #e89ab0;
    color: #fff;
    text-decoration: none;
    border-radius: 999px;
    transition: 0.3s ease;
}

.map-btn:hover {
    background: #d97e9a;
}

.contact-map {
    flex: 2 1 320px;
}

.contact-map iframe {
    width: 100%;
    height: 400px;
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.gallery-title {
    margin-bottom: 40px;
    text-align: center;
    font-size: 42px;
    color: #e89ab0;
    letter-spacing: 2px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.gallery-card {
    background: transparent;
}

.gallery-image-button {
    display: block;
    width: 100%;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
}

.gallery-image-button img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 20px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.gallery-image-button:hover img {
    transform: scale(1.02);
    opacity: 0.95;
}

.gallery-overlay {
    display: none;
}

.gallery-empty,
.admin-empty {
    margin-top: 10px;
    text-align: center;
    font-size: 18px;
    color: #666;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: rgba(20, 20, 20, 0.88);
}

.lightbox.active {
    display: flex;
}

.lightbox-image {
    max-width: 92vw;
    max-height: 88vh;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 30px;
    width: 54px;
    height: 54px;
    border: none;
    border-radius: 999px;
    background: #fff;
    color: #444;
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    transition: 0.25s ease;
}

.lightbox-close:hover {
    transform: scale(1.06);
    color: #e89ab0;
}

.no-scroll {
    overflow: hidden;
}

.admin-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.admin-form label {
    font-weight: 500;
    color: #444;
}

.admin-form input,
.admin-form textarea,
.admin-form select {
    padding: 12px 14px;
    border: 1px solid #e5cfd6;
    border-radius: 12px;
    background: #fff;
    color: #333;
}

.login-card {
    max-width: 520px;
    margin: 0 auto;
}

.logout-form {
    margin: 0;
}

.form-error {
    margin-bottom: 20px;
    padding: 12px 14px;
    background: #fdeff3;
    border: 1px solid #f3c8d5;
    border-radius: 12px;
    color: #c45a78;
}

.form-success,
.success-message {
    margin-bottom: 20px;
    padding: 14px 18px;
    border-radius: 12px;
    text-align: center;
    font-weight: 500;
}

.form-success,
.success-message {
    background: #dff5e5;
    color: #256245;
}

.admin-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 30px;
}

.admin-gallery-card {
    padding: 14px;
    overflow: hidden;
    border-radius: 20px;
}

.admin-gallery-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 14px;
}

.admin-category-group {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #ead6dc;
}

.admin-category-group h3 {
    margin-bottom: 20px;
    color: #d98fa7;
    font-size: 28px;
}

.admin-item-form {
    margin: 20px 0;
    padding: 20px;
    border: 1px solid #ead6dc;
    border-radius: 18px;
    background: #fffdfd;
}

.admin-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.delete-btn {
    width: 100%;
    margin-top: 14px;
    padding: 12px 18px;
    border: none;
    border-radius: 999px;
    background: #f3dbe3;
    color: #c46f8d;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s ease;
}

.delete-btn:hover {
    background: #e9c7d3;
}

#scrollTopBtn {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: #e89ab0;
    color: #fff;
    font-size: 22px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

#scrollTopBtn:hover {
    background: #d87f96;
    transform: translateY(-3px) scale(1.05);
}

#scrollTopBtn.show {
    display: flex;
}

@media (max-width: 1100px) {
    .header {
        padding: 18px 28px;
    }

    .logo-text {
        font-size: 46px;
    }

    .menu {
        gap: 22px;
    }

    .hero-content h1 {
        font-size: 64px;
    }

    .preview-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gallery-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .price-section,
    .info-section,
    .contact-section,
    .gallery-section,
    .preview,
    .home-cta,
    .home-intro {
        padding-left: 28px;
        padding-right: 28px;
    }
}

@media (max-width: 820px) {
    .header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding: 18px 20px;
    }

    .menu {
        gap: 14px 18px;
    }

    .menu li a {
        font-size: 13px;
        letter-spacing: 1.2px;
    }

    .dropdown-menu {
        left: 0;
        min-width: 240px;
    }

    .logo-text {
        font-size: 40px;
    }

    .hero-slider {
        min-height: 68vh;
        padding: 30px 16px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-content h1 {
        font-size: 44px;
        letter-spacing: 3px;
        line-height: 1.1;
    }

    .home-intro {
        margin-top: -36px;
        padding: 0 20px;
    }

    .home-intro-card {
        padding: 26px 22px;
        border-radius: 22px;
    }

    .home-intro-card h2 {
        font-size: 28px;
    }

    .home-intro-card p,
    .info-block p,
    .info-list li,
    .price-note-row p,
    .extension-note p,
    .nail-note p,
    .preview-text,
    .contact-info {
        font-size: 16px;
        line-height: 1.75;
    }

    .preview,
    .price-section,
    .info-section,
    .contact-section,
    .gallery-section,
    .home-cta {
        padding-left: 20px;
        padding-right: 20px;
    }

    .preview {
        padding-top: 70px;
        padding-bottom: 50px;
    }

    .preview h2,
    .gallery-title,
    .price-title,
    .info-title,
    .contact-title {
        font-size: 38px;
    }

    .preview-card img {
        height: 240px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }

    .gallery-image-button img {
        border-radius: 16px;
    }

    .home-cta {
        padding-top: 20px;
        padding-bottom: 70px;
    }

    .home-cta-card {
        padding: 30px 22px;
        border-radius: 22px;
    }

    .home-cta-card h2 {
        font-size: 28px;
    }

    .home-cta-card p {
        font-size: 16px;
    }

    .price-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .price-category {
        padding: 14px 28px;
        font-size: 22px;
        text-align: center;
    }

    .service {
        font-size: 18px;
    }

    .info-block {
        padding: 28px 22px;
        border-radius: 18px;
    }

    .info-block h2 {
        font-size: 28px;
    }

    .contact-content {
        flex-direction: column;
        gap: 30px;
    }

    .contact-map iframe {
        height: 320px;
    }

    .lightbox {
        padding: 20px;
    }

    .lightbox-close {
        top: 16px;
        right: 16px;
        width: 46px;
        height: 46px;
        font-size: 28px;
    }

    .admin-gallery-card img {
        height: 220px;
    }
}

@media (max-width: 560px) {
    .header {
        padding: 16px;
    }

    .logo-text {
        font-size: 34px;
    }

    .menu {
        gap: 10px 14px;
    }

    .menu li a {
        font-size: 12px;
        letter-spacing: 1px;
    }

    .dropdown-menu {
        min-width: 210px;
    }

    .hero-slider {
        min-height: 58vh;
    }

    .hero-subtitle {
        margin-bottom: 12px;
        font-size: 14px;
    }

    .hero-content h1 {
        margin-bottom: 20px;
        font-size: 34px;
        letter-spacing: 2px;
    }

    .btn {
        padding: 12px 24px;
        font-size: 14px;
    }

    .home-intro-card h2,
    .home-cta-card h2,
    .info-block h2 {
        font-size: 24px;
    }

    .preview h2,
    .gallery-title,
    .price-title,
    .info-title,
    .contact-title {
        font-size: 30px;
        letter-spacing: 2px;
    }

    .preview-grid,
    .gallery-grid,
    .admin-gallery-grid {
        grid-template-columns: 1fr;
    }

    .preview-card img {
        height: auto;
        aspect-ratio: 4 / 5;
    }

    .contact-map iframe {
        height: 260px;
    }

    .price-category {
        width: 100%;
        max-width: 320px;
        font-size: 20px;
    }

    .section-anchor {
        top: -150px;
    }

    #scrollTopBtn {
        right: 16px;
        bottom: 16px;
        width: 44px;
        height: 44px;
        font-size: 20px;
    }
}