body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #fff5f7, #ffffff, #fff0f5, #fef9fb, #ffffff);
    background-size: 400% 400%;
    animation: bgMove 30s ease-in-out infinite;
    color: #333;
    text-align: center;
    position: relative;
    overflow-x: hidden;
}

/* Размытые сердечки на фоне */
body::before,
body::after {
    content: '♥';
    position: fixed;
    font-size: 120px;
    color: rgba(255, 182, 193, 0.08);
    filter: blur(3px);
    z-index: 0;
    animation: floatHeart 20s ease-in-out infinite;
}

body::before {
    top: 15%;
    left: 10%;
    animation-delay: 0s;
}

body::after {
    bottom: 20%;
    right: 8%;
    font-size: 150px;
    animation-delay: 5s;
}

@keyframes floatHeart {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-20px) rotate(5deg); }
    50% { transform: translateY(0px) rotate(0deg); }
    75% { transform: translateY(-15px) rotate(-5deg); }
}

@keyframes bgMove {
    0% { background-position: 0% 50%; }
    25% { background-position: 50% 70%; }
    50% { background-position: 100% 50%; }
    75% { background-position: 50% 30%; }
    100% { background-position: 0% 50%; }
}


.lang-switch {
    position: fixed;
    top: 15px;
    right: 15px;
    z-index: 1000;
}

.lang-switch button {
    border: 2px solid #ffb6c1;
    background: #ffffff;
    padding: 8px 14px;
    margin-left: 5px;
    border-radius: 20px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(255, 122, 162, 0.3);
    font-weight: 600;
    color: #ff7aa2;
    transition: all 0.3s ease;
}

.lang-switch button:hover {
    background: #ff7aa2;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 122, 162, 0.4);
}

.lang-switch button:active {
    transform: translateY(0);
}

header {
    padding: 80px 20px;
    background: linear-gradient(135deg, #ffb6c1 0%, #ffc9d4 25%, #ffd8e4 50%, #ffe8f0 75%, #fff5f7 100%);
    position: relative;
    overflow: hidden;
}

h1 {
    font-size: 42px;
    margin-bottom: 10px;
    position: relative;
    z-index: 2;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    background: linear-gradient(135deg, #ff7aa2, #ff9ab5);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    margin-top: 20px;
    font-weight: 500;
    box-shadow: 0 8px 20px rgba(255,122,162,0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(255,122,162,0.45);
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 6px 15px rgba(255,122,162,0.3);
}


section {
    padding: 80px 20px;
    position: relative;
    transition: transform 0.3s ease;
    z-index: 1;
}

section:hover {
    transform: scale(1.01);
}

/* Декоративный разделитель между секциями */
section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #ffb6c1, #ffc9d4, #ffb6c1, transparent);
    border-radius: 10px;
}

/* Добавляем сердечко-разделитель */
section::before {
    content: '♥';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 24px;
    color: #ffb6c1;
    z-index: 2;
    filter: drop-shadow(0 2px 4px rgba(255, 182, 193, 0.3));
}

/* Убираем разделитель у последней секции перед footer */
section:last-of-type::after,
section:last-of-type::before {
    display: none;
}


h2 {
    margin-bottom: 30px;
    font-size: 28px;
    transition: all 0.3s ease;
    display: inline-block;
}

h2:hover {
    transform: translateY(-3px);
    text-shadow: 0 5px 15px rgba(255, 122, 162, 0.3);
    color: #ff7aa2;
}

ul {
    list-style: none;
    padding: 0;
    font-size: 18px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    max-width: 900px;
    margin: auto;
}

.grid img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    cursor: pointer;
}

.grid img:hover {
    transform: scale(1.05);
}

footer {
    padding: 20px;
    background: #ffeef2;
    font-size: 14px;
}

/* Лайтбокс */
#lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    justify-content: center;
    align-items: center;
}

#lightbox img {
    max-width: 90%;
    max-height: 85%;
    border-radius: 12px;
}

/* --- АНИМАЦИЯ ПОЯВЛЕНИЯ --- */

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Разделение секций визуально */


/* Карточки услуг — лёгкая анимация */
ul li {
    margin: 10px 0;
    transition: transform 0.3s ease, color 0.3s ease;
}

ul li:hover {
    transform: translateX(5px);
    color: #ff7aa2;
}

/* Галерея — мягкое появление */
.grid img {
    opacity: 0;
    transform: scale(0.95);
    animation: fadeIn 0.6s forwards;
}

.grid img:nth-child(1) { animation-delay: 0.1s; }
.grid img:nth-child(2) { animation-delay: 0.2s; }
.grid img:nth-child(3) { animation-delay: 0.3s; }
.grid img:nth-child(4) { animation-delay: 0.4s; }
.grid img:nth-child(5) { animation-delay: 0.5s; }
.grid img:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* --- СЛАЙДЕР ЛАЙТБОКС --- */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeBg 0.4s ease;
}

@keyframes fadeBg {
    from { opacity: 0; }
    to { opacity: 1; }
}

#slider-img {
    max-width: 90%;
    max-height: 85%;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    animation: zoomIn 0.4s ease;
}

@keyframes zoomIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: white;
    cursor: pointer;
}

.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 50px;
    color: white;
    cursor: pointer;
    padding: 10px;
    user-select: none;
}

.arrow.left { left: 20px; }
.arrow.right { right: 20px; }

.arrow:hover, .close:hover {
    opacity: 0.7;
}



.cursor-glow {
    position: fixed;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(255,182,193,0.18) 0%, rgba(255,182,193,0) 70%);
    pointer-events: none;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.08s ease-out;
    z-index: 0;
}


html {
    scroll-behavior: smooth;
}

#about p,
#services ul,
#contact {
    max-width: 700px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 25px 30px;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
    position: relative;
    z-index: 2;
}

#about p:hover,
#services ul:hover,
#contact:hover {
    transform: translateY(-8px) rotateX(2deg);
    box-shadow: 0 20px 40px rgba(255, 122, 162, 0.15);
    background: rgba(255, 255, 255, 0.75);
}

/* Отступы вокруг белого блока контактов */
#contact {
    margin-top: 80px;  /* расстояние сверху от предыдущего блока */
    margin-bottom: 120px;  /* расстояние снизу до футера */
}

header .btn {
    opacity: 0;
    transform: translateY(15px);
    animation: btnFade 1s ease forwards;
    animation-delay: 0.6s;
}

@keyframes btnFade {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}



