/* CSS для сайта аленанейлс.рф - Версия 1.3 */
body {
    background: linear-gradient(45deg, #ff7e5f, #feb47b, #f5f0e1, #c7d6a7, #8ac6af);
    background-size: 400% 400%;
    animation: gradientAnimation 10s ease infinite;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

@keyframes gradientAnimation {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Header */
header {
    background-color: rgba(255, 255, 255, 0.8);
    padding: 20px;
    text-align: center;
    animation: slideInDown 1s ease-out;
}

header h1 {
    margin-bottom: 10px;
    animation: zoomIn 1.2s ease-out 0.3s;
}

header p {
    animation: fadeIn 1.4s ease-out 0.6s;
}

/* Telegram Button стиль */
.telegram-button {
    background-color: #2AABEE;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-family: sans-serif;
    display: inline-block;
    transition: background-color 0.3s ease;
    margin-top: 10px;
}

.telegram-button:hover {
    background-color: #1E88E5;
}

/* Avatar Animation */
.container {
    width: 200px;
    height: 200px;
    position: relative;
    margin: 20px auto;
}

.avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    transform: scale(0);
    opacity: 0;
    animation: popIn 0.5s ease forwards;
}

@keyframes popIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    80% {
        transform: scale(1.2);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Services Section */
#services {
    padding: 20px;
    text-align: center;
    animation: slideInLeft 1.2s ease-out;
    max-width: 1200px;
    margin: 0 auto;
}

#services h2 {
    animation: bounceIn 1s ease-out;
}

.services-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    place-items: center;
}

.service {
    width: 250px;
    margin-bottom: 20px;
    padding: 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
    animation: fadeInUp 1s ease-out;
    transition: transform 0.3s ease;
}

.service:hover {
    transform: translateY(-5px);
}

.service img {
    width: 100%;
    height: auto;
    max-height: 200px;
    margin-bottom: 5px;
    object-fit: cover;
    border-radius: 5px 5px 0 0;
    animation: zoomIn 1s ease-out 0.2s;
}

.service h3 {
    margin: 0;
    padding: 5px;
    text-align: center;
    animation: fadeIn 1s ease-out 0.4s;
}

.service p {
    margin: 0;
    padding: 5px;
    text-align: center;
    animation: fadeIn 1s ease-out 0.6s;
}

.service a {
    display: block;
    background-color: #25D366;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 16px;
    margin-top: 10px;
    margin-bottom: 5px;
    animation: bounceIn 1s ease-out 0.8s;
}

.service a:hover {
    background-color: #128C7E;
}

/* Gallery Section */
#gallery {
    padding: 20px;
    text-align: center;
    animation: slideInRight 1.2s ease-out;
}

#gallery h2 {
    animation: swing 1s ease-in-out;
}

.swiper {
    width: 80%;
    max-width: 600px;
    height: 400px;
    animation: zoomIn 1s ease-out;
}

.swiper-slide img {
    animation: fadeIn 1s ease-out;
}

/* Contacts Section */
#contacts {
    padding: 20px;
    text-align: center;
    animation: fadeInUp 1.2s ease-out;
}

#contacts h2 {
    animation: tada 1s ease-in-out;
}

#map {
    margin-bottom: 20px;
    animation: zoomIn 1s ease-out;
}

.whatsapp-button {
    display: inline-block;
    background-color: #25D366;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 16px;
    animation: bounce 1s ease-out;
}

/* Footer */
footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 10px;
    animation: fadeIn 1.2s ease-out;
}

/* Why Us Section */
.why-us-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    text-align: center;
}

.why-us-title {
    font-size: 2em;
    margin-bottom: 30px;
    color: #333;
}

.why-us-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    justify-content: center;
}

.why-us-item {
    padding: 15px;
    border-radius: 5px;
    text-align: center;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.why-us-item img {
    max-width: 120px;
    height: auto;
    margin-bottom: 10px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.why-us-item h3 {
    font-size: 1em;
    margin-bottom: 5px;
    color: #555;
    text-align: center;
}

/* Reviews Section */
.reviews-container {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f9f9f9;
}

.review {
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 5px;
    background-color: #fff;
}

.review-author {
    font-weight: bold;
    margin-bottom: 5px;
}

.review-date {
    font-size: 0.8em;
    color: #888;
}

.review-text {
    line-height: 1.6;
}

.reviews-title {
    font-size: 1.5em;
    margin-bottom: 20px;
    text-align: center;
}

/* Telegram link in footer */
.telegram-link {
    text-decoration: underline;
    color: blue;
    cursor: pointer;
}

.telegram-link:hover {
    color: darkblue;
}

/* Keyframes */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes slideInDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes bounceIn {
    0%, 20%, 50%, 80%, 100% {
        animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
    }
    0% {
        opacity: 0;
        transform: scale3d(.3, .3, .3);
    }
    20% {
        transform: scale3d(1.1, 1.1, 1.1);
    }
    40% {
        transform: scale3d(.9, .9, .9);
    }
    60% {
        opacity: 1;
        transform: scale3d(1.03, 1.03, 1.03);
    }
    80% {
        transform: scale3d(.97, .97, .97);
    }
    100% {
        opacity: 1;
        transform: scaleX(1);
    }
}

@keyframes swing {
    20% {
        transform: rotate3d(0, 0, 1, 15deg);
    }
    40% {
        transform: rotate3d(0, 0, 1, -10deg);
    }
    60% {
        transform: rotate3d(0, 0, 1, 5deg);
    }
    80% {
        transform: rotate3d(0, 0, 1, -5deg);
    }
    100% {
        transform: rotate3d(0, 0, 1, 0deg);
    }
}

@keyframes tada {
    0% {
        transform: scale3d(1, 1, 1);
    }
    10%, 20% {
        transform: scale3d(.9, .9, .9) rotate3d(0, 0, 1, -3deg);
    }
    30%, 50%, 70%, 90% {
        transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg);
    }
    40%, 60%, 80% {
        transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg);
    }
    100% {
        transform: scale3d(1, 1, 1);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-30px);
    }
    60% {
        transform: translateY(-15px);
    }
}

@media (max-width: 768px) {
    .why-us-items {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    .why-us-item img {
        max-width: 80px;
    }
    .why-us-item h3 {
        font-size: 0.9em;
    }
}

/* ========== ДОБАВЛЕННЫЕ СТИЛИ ДЛЯ ВЕСЕННИХ ЛЕПЕСТКОВ ========== */
#spring-petals {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.petal {
    position: absolute;
    top: -50px;
    color: #ff9a9e; /* нежно-розовый */
    font-size: 1.5em;
    opacity: 0.7;
    user-select: none;
    z-index: 9999;
    text-shadow: 0 0 5px rgba(255, 182, 193, 0.8);
    animation: fallRotate linear infinite;
}

@keyframes fallRotate {
    0% {
        top: -50px;
        transform: rotate(0deg);
        opacity: 0.7;
    }
    100% {
        top: 100vh;
        transform: rotate(360deg);
        opacity: 0;
    }
}

/* Разные цвета для разнообразия */
.petal:nth-child(3n) { color: #fdd0f2; } /* светло-розовый */
.petal:nth-child(3n+1) { color: #b2f0b2; } /* светло-зелёный (листочки) */
.petal:nth-child(3n+2) { color: #ffe066; } /* жёлтый (серединки) */

@media (max-width: 768px) {
    .petal {
        font-size: 1.2em;
    }
}