/* style.css — современный дизайн, анимации, Intersection Observer */

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

body {
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    background-color: #ffffff;
    color: #1e293b;
}

/* Gradients & text styles */
.text-gradient {
    background: linear-gradient(135deg, #0f2b3d 0%, #1b8c5e 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.text-primary-grad {
    background: linear-gradient(135deg, #0f2b3d, #1b8c5e);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.btn-primary {
    background: linear-gradient(100deg, #0f2b3d, #1b8c5e);
    border: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    font-weight: 600;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px -10px rgba(27, 140, 94, 0.4);
    background: linear-gradient(100deg, #1a3e4f, #249f6e);
}

.btn-outline-secondary {
    border: 2px solid #cbd5e1;
    font-weight: 600;
}

.btn-outline-secondary:hover {
    background: #f1f5f9;
    border-color: #1b8c5e;
    color: #1b8c5e;
}

/* Navbar glass effect */
.glass-nav {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: 700;
    color: #0f2b3d;
}

.nav-link {
    font-weight: 500;
    color: #334155;
    transition: 0.2s;
}

.nav-link:hover, .nav-link.active {
    color: #1b8c5e;
}

/* Hero section */
.hero-section {
    background: linear-gradient(145deg, #f8fdf9 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.wave-bottom {
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.wave-bottom svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 70px;
}

.shape-fill {
    fill: #ffffff;
}

.hero-img {
    animation: float 4s ease-in-out infinite;
}

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

/* fade-up анимация (Intersection Observer) */
.fade-up {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 0.7s cubic-bezier(0.2, 0.9, 0.4, 1.1), transform 0.7s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-padding {
    padding: 100px 0;
}

.bg-light {
    background-color: #f9fafc !important;
}

.bg-soft-primary {
    background: linear-gradient(to bottom, #f0f9f4, #ffffff);
}

/* Benefit cards */
.benefit-card {
    border-radius: 28px;
    transition: all 0.3s;
    background: white;
}

.benefit-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 35px -15px rgba(0, 0, 0, 0.1);
}

.icon-circle {
    width: 75px;
    height: 75px;
    background: linear-gradient(135deg, #eafaf1, #d1fae5);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #1b8c5e;
}

/* step timeline */
.step-card {
    background: white;
    border-radius: 32px;
    transition: 0.2s;
    height: 100%;
    box-shadow: 0 5px 20px rgba(0,0,0,0.02);
    border: 1px solid rgba(0,0,0,0.03);
}

.step-number {
    width: 55px;
    height: 55px;
    background: linear-gradient(145deg, #0f2b3d, #1f6343);
    color: white;
    font-size: 1.8rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 25px;
    margin-bottom: 20px;
}

.rule-item {
    background: #f9fafb;
    padding: 12px 18px;
    border-radius: 20px;
    transition: 0.2s;
}

.rule-item:hover {
    background: #f1f5f9;
    transform: translateX(6px);
}

.badge-primary-soft {
    background-color: #e0f2e9;
    color: #1b5e3f;
}

.badge-warning-soft {
    background: #fff3e0;
    color: #b55f0a;
}

/* cta card */
.cta-card {
    background: white;
    border: 1px solid rgba(27, 140, 94, 0.2);
    box-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

/* calculator result */
#calcResult {
    font-size: 1.1rem;
    font-weight: 500;
    border-left: 4px solid #1b8c5e;
}

/* footer */
.footer a:hover {
    color: #1b8c5e !important;
    transition: 0.2s;
}

/* адаптивность */
@media (max-width: 768px) {
    .section-padding {
        padding: 60px 0;
    }
    .display-3 {
        font-size: 2.5rem;
    }
    .hero-section .min-vh-100 {
        min-height: 90vh !important;
    }
    .wave-bottom svg {
        height: 40px;
    }
    .step-number {
        width: 45px;
        height: 45px;
        font-size: 1.4rem;
    }
}