/* --- Основные Сбросы и Настройки стиля --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

html {
    scroll-behavior: smooth;
    color: #333;
}

body {
    background-color: #fcfdfd;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}
/* --- Стили для SVG логотипа в шапке --- */
.brand-icon {
    width: 34px;
    height: 34px;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Анимация пульсации всей иконки */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.logo:hover .brand-icon {
    transform: scale(1.1) rotate(-5deg);
}

/* Внутренняя анимация сияния самой SVG-искорки при наведении */
.sparkle-path {
    transform-origin: 60px 28px; /* Точка центра искорки */
    transition: transform 0.6s ease, fill 0.3s ease;
}

.logo:hover .sparkle-path {
    transform: scale(1.3) rotate(45deg);
    fill: #38ef7d; /* Свежий зеленый акцент чистоты при наведении */
}
/* --- Навигационная панель --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    z-index: 1000;
    padding: 15px 0;
    backdrop-filter: blur(5px);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 700;
    font-size: 1.4rem;
    color: #0F2027;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo small {
    font-size: 0.8rem;
    color: #203A43;
    border: 1px solid #203A43;
    padding: 1px 4px;
    border-radius: 3px;
}

.spark-icon {
    color: #2c5364;
    animation: pulse-spark 2s infinite ease-in-out;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    margin-left: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #2c5364;
}

.nav-menu .btn-nav {
    background: #2c5364;
    color: #fff;
    padding: 8px 18px;
    border-radius: 25px;
    transition: transform 0.3s ease, background 0.3s ease;
}

.nav-menu .btn-nav:hover {
    background: #203A43;
    color: #fff;
    transform: translateY(-2px);
}

/* --- Главный Баннер (Hero) --- */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    padding: 0 20px;
    position: relative;
}

.hero h1 {
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    max-width: 800px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    max-width: 650px;
    margin-bottom: 35px;
    font-weight: 300;
    line-height: 1.6;
}

.hero-btns {
    display: flex;
    gap: 20px;
}

.btn {
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn-primary {
    background: #ffffff;
    color: #2c5364;
    box-shadow: 0 4px 15px rgba(255,255,255,0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255,255,255,0.4);
}

.btn-secondary {
    border: 2px solid #ffffff;
    color: #ffffff;
}

.btn-secondary:hover {
    background: #ffffff;
    color: #2c5364;
    transform: translateY(-3px);
}

.wave-separator {
    position: absolute;
    bottom: 0;
    width: 100%;
    left: 0;
    line-height: 0;
}

/* --- Секция О Нас --- */
.about-section {
    padding: 100px 0;
    background: #fff;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 50px;
    align-items: center;
}

.about-text h2 {
    font-size: 2.3rem;
    color: #0F2027;
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 15px;
    line-height: 1.7;
    color: #555;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.stat-card {
    background: #f4f8f9;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    border-left: 5px solid #2c5364;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateX(10px);
}

.stat-card i {
    font-size: 2rem;
    color: #2c5364;
    margin-bottom: 10px;
}

.stat-card h3 {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

/* --- Секция Услуг --- */
.services-section {
    padding: 100px 0;
    background: #f8fafb;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: #0F2027;
    margin-bottom: 15px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.card-img {
    height: 220px;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.service-card:hover .card-img {
    transform: scale(1.05);
}

.card-content {
    padding: 25px;
}

.card-content h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: #0F2027;
}

.card-content p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
}

/* --- Секция Цен --- */
.pricing-section {
    padding: 100px 0;
    background: #fff;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.price-box {
    background: #f8fafb;
    padding: 40px 30px;
    border-radius: 20px;
    border: 1px solid #eef2f5;
    position: relative;
    transition: transform 0.3s ease;
}

.price-box:hover {
    transform: scale(1.02);
}

.premium-box {
    background: linear-gradient(145deg, #2c5364, #203A43);
    color: #fff;
    box-shadow: 0 15px 35px rgba(44, 83, 100, 0.2);
}

.badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #fff;
    color: #2c5364;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.price-box h4 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    border-bottom: 2px solid rgba(0,0,0,0.05);
    padding-bottom: 10px;
}

.premium-box h4 {
    border-bottom: 2px solid rgba(255,255,255,0.1);
}

.price-box ul {
    list-style: none;
}

.price-box ul li {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    font-size: 0.95rem;
    border-bottom: 1px dashed rgba(0,0,0,0.05);
}

.premium-box ul li {
    border-bottom: 1px dashed rgba(255,255,255,0.1);
}

.price-box ul li strong {
    color: #2c5364;
}

.premium-box ul li strong {
    color: #fff;
    background: rgba(255,255,255,0.1);
    padding: 2px 8px;
    border-radius: 5px;
}

/* --- Почему мы --- */
.why-section {
    padding: 100px 0;
    background: #f8fafb;
}

.why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.why-img {
    height: 450px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
}

.why-content h2 {
    font-size: 2.3rem;
    margin-bottom: 25px;
    color: #0F2027;
}

.features-list {
    list-style: none;
}

.features-list li {
    font-size: 1.1rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #444;
}

.features-list i {
    color: #2c5364;
    font-size: 1.3rem;
}

/* --- Контакты --- */
.contact-section {
    padding: 100px 0;
    background: #fff;
    text-align: center;
}

.contact-card {
    background: linear-gradient(135deg, #0F2027, #203A43, #2c5364);
    color: #fff;
    padding: 60px 40px;
    border-radius: 30px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.contact-card h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.contact-card p {
    margin-bottom: 40px;
    font-weight: 300;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.info-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 15px;
    transition: background 0.3s ease;
}

.info-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.info-item i {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #fff;
}

.info-item .x-icon {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    margin-bottom: 15px;
    color: #fff;
}

.info-item .x-icon svg {
    display: block;
    width: 100%;
    height: 100%;
}

.info-item p, .info-item a {
    color: #fff;
    text-decoration: none;
    font-size: 0.95rem;
}

/* --- Подвал --- */
footer {
    background: #0F2027;
    color: rgba(255,255,255,0.6);
    padding: 30px 0;
    text-align: center;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* --- Кастомные анимации (Keyframes) --- */
@keyframes pulse-spark {
    0% { transform: scale(1) rotate(0deg); opacity: 0.8; }
    50% { transform: scale(1.2) rotate(15deg); opacity: 1; }
    100% { transform: scale(1) rotate(0deg); opacity: 0.8; }
}

/* --- Адаптивность для мобильных --- */
@media (max-width: 768px) {
    .nav-menu { display: none; } /* Для продакшна обычно добавляют гамбургер-меню */
    .hero h1 { font-size: 2.2rem; }
    .about-grid, .why-grid { grid-template-columns: 1fr; }
    .why-img { height: 300px; }
}

/* --- Секция "Как это работает" (How It Works) --- */
.process-section {
    padding: 100px 0;
    background: #ffffff;
    position: relative;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 50px;
    position: relative;
}

/* Стили карточек шагов */
.step-card {
    background: #f8fafb;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    position: relative;
    transition: all 0.4s ease;
    border: 1px solid #eef2f5;
}

.step-card:hover {
    transform: translateY(-8px);
    background: #fff;
    box-shadow: 0 15px 35px rgba(44, 83, 100, 0.08);
}

/* Порядковый номер */
.step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #2c5364, #203A43);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 4px 10px rgba(32, 58, 67, 0.3);
}

.step-icon-wrapper {
    width: 100px;
    height: 100px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-svg {
    width: 100%;
    height: 100%;
}

.step-card h3 {
    font-size: 1.3rem;
    color: #0F2027;
    margin-bottom: 15px;
    font-weight: 600;
}

.step-card p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
}
/* ==========================================================================
   АВТОМАТИЧЕСКАЯ ПООЧЕРЕДНАЯ АНИМАЦИЯ ДЛЯ ШАГОВ
   ========================================================================== */

/* --- Шаг 1: Телефон (Запускается сразу) --- */
.svg-phone {
    animation: phone-ring 2.5s infinite ease-in-out;
    transform-origin: center;
}
.wave-1 { animation: wave-flash 1.2s infinite ease-in-out; }
.wave-2 { animation: wave-flash 1.2s infinite ease-in-out 0.3s; }

/* --- Шаг 2: Губка (Задержка 0.8s для создания очереди) --- */
.sponge-body { 
    animation: sponge-scrub 2.5s infinite ease-in-out 0.8s; 
    transform-origin: center;
}
.clean-sparkle { 
    animation: sparkle-pulse 1.2s infinite ease-in-out 0.8s; 
    transform-origin: 25px 29px;
}
.delay-sparkle { 
    animation: sparkle-pulse 1.2s infinite ease-in-out 1.4s; 
    transform-origin: 75px 21px;
}
.bubble { animation: bubble-rise 1.5s infinite ease-out 0.8s; transform-origin: bottom; }
.b2 { animation-delay: 1.1s; }
.b3 { animation-delay: 1.4s; }

/* --- Шаг 3: Радость/Сердце (Задержка 1.6s — финал цепочки) --- */
.joy-heart {
    animation: heart-beat 2.5s infinite ease-in-out 1.6s;
    transform-origin: 50px 35px;
}


/* ==========================================================================
   КЛЮЧЕВЫЕ КАДРЫ (KEYFRAMES)
   ========================================================================== */

/* Анимация телефона */
@keyframes phone-ring {
    0%, 40%, 100% { transform: rotate(0deg) scale(1); }
    10% { transform: rotate(-8deg) scale(1.05); }
    20% { transform: rotate(8deg) scale(1.05); }
    30% { transform: rotate(-8deg) scale(1.05); }
}
@keyframes wave-flash {
    0%, 100% { opacity: 0.2; transform: scale(0.9); }
    50% { opacity: 1; transform: scale(1.05); }
}

/* Анимация губки и чистоты */
@keyframes sponge-scrub {
    0%, 40%, 100% { transform: translate(0, 0) rotate(0deg); }
    10% { transform: translate(-6px, 3px) rotate(-4deg); }
    20% { transform: translate(6px, -3px) rotate(4deg); }
    30% { transform: translate(-4px, 2px) rotate(-2deg); }
}
@keyframes sparkle-pulse {
    0%, 100% { transform: scale(0.5); opacity: 0.2; fill: #00b4db; }
    50% { transform: scale(1.2); opacity: 1; fill: #38ef7d; }
}
@keyframes bubble-rise {
    0% { transform: translateY(10px) scale(0.5); opacity: 0; }
    30% { opacity: 0.8; }
    70% { transform: translateY(-15px) scale(1); opacity: 0; }
    100% { opacity: 0; }
}

/* Анимация пульсации сердца */
@keyframes heart-beat {
    0%, 40%, 100% { transform: scale(1); filter: drop-shadow(0 0 0 rgba(231, 76, 60, 0)); }
    10% { transform: scale(1.25); filter: drop-shadow(0 4px 8px rgba(231, 76, 60, 0.4)); }
    20% { transform: scale(1.1); }
    30% { transform: scale(1.3); filter: drop-shadow(0 4px 12px rgba(231, 76, 60, 0.5)); }
}

/* Эффект легкого увеличения карточки при наведении (сохраняем интерактивность) */
.step-card:hover {
    transform: translateY(-8px);
    background: #fff;
    box-shadow: 0 15px 35px rgba(44, 83, 100, 0.08);
    border-color: #2c5364;
}