:root {
    --primary: #ff6b6b;
    --secondary: #48dbfb;
    --dark: #2d3436;
    --light: #f7f7f7;
    --accent: #feca57;
    --green: #1dd1a1;
    --purple: #5f27cd;
    --orange: #ff9f43;
    background-size: 400% 400%;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    background-color: var(--light);
    color: var(--dark);
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding:3px;
}

header {
    text-align: center;
    padding: 40px 0;
    background: linear-gradient(-45deg, var(--primary), var(--purple), var(--secondary), var(--green));
    background-size: 400% 400%;
    color: white;
    border-radius: 0 0 30px 30px;
    margin-bottom: 40px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
    animation: headerGradient 15s ease infinite;
}

@keyframes headerGradient {
    0% { background-position: 0% 50%; }
    25% { background-position: 50% 100%; }
    50% { background-position: 100% 50%; }
    75% { background-position: 50% 0%; }
    100% { background-position: 0% 50%; }
}

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

.word-container {
    display: inline-block;
    position: relative;
}

#changing-word {
    display: inline-block;
    min-width: 120px;
    text-align: left;
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.countdown {
    background: rgba(255,255,255,0.15);
    padding: 15px 30px;
    border-radius: 50px;
    display: inline-block;
    margin-top: 20px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: relative;
    z-index: 2;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.18);
    transition: all 0.3s ease;
}

.countdown:hover {
    background: rgba(255,255,255,0.2);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.3);
}

.countdown span {
    font-weight: bold;
}

.section {
    background: white;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

.section:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.section h2 {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    color: var(--primary);
    font-size: 1.8rem;
}

.section h2 span {
    margin-right: 10px;
    font-size: 2rem;
}

.footer {
    text-align: center;
    padding: 40px 0;
    color: #777;
    font-size: 0.9rem;
}

.heart {
    color: var(--primary);
    font-size: 1.2rem;
    animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.decoration {
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    z-index: 1;
}

.decoration-1 {
    top: -150px;
    right: -150px;
}

.decoration-2 {
    bottom: -150px;
    left: -150px;
}

.floating-element {
    position: absolute;
    z-index: 1;
    opacity: 0.6;
    filter: blur(1px);
    animation: float 3s ease-in-out infinite alternate;
}

.stars {
    position: absolute;
    width: 3px;
    height: 3px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 10px 2px rgba(255, 255, 255, 0.8);
    animation: twinkle 3s infinite ease-in-out alternate;
}

@keyframes twinkle {
    0% {
        opacity: 0.4;
        box-shadow: 0 0 5px 1px rgba(255, 255, 255, 0.3);
    }
    50% {
        opacity: 0.8;
        box-shadow: 0 0 10px 2px rgba(255, 255, 255, 0.8);
    }
    100% {
        opacity: 0.3;
        box-shadow: 0 0 5px 1px rgba(255, 255, 255, 0.3);
    }
}

@keyframes float-delay {
    0% { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(-20px) rotate(5deg); }
}

.add-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 100;
}

.add-button:hover {
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
}

.add-button::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--primary);
    opacity: 0.6;
    z-index: -1;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.3); opacity: 0; }
    100% { transform: scale(1); opacity: 0; }
}

@keyframes float {
    0% { transform: translateY(0); }
    100% { transform: translateY(-10px); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Более тонкая анимация пульсации для счетчика */
@keyframes pulse-subtle {
    0% { transform: scale(1); }
    50% { transform: scale(1.03); }
    100% { transform: scale(1); }
}

.countdown {
    animation: pulse-subtle 2s infinite;
}