.hero {
    background: 
        linear-gradient(rgba(131, 182, 244, 0.25), rgba(1, 55, 109, 0.5)),
        url('../images/backgrounds/фото_хиро.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 900px;
    border-radius: 20px;
    margin: 30px auto;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 85%;
    box-shadow: 0 20px 60px rgba(10, 60, 120, 0.3);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(135deg, #0a3c78 0%, #1a6fb3 50%, #2a9df4 100%),
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    z-index: -1;
    opacity: 0;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%230a3c78' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.2;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 1000px;
    padding: 40px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.hero-info {
    padding: 50px;
    margin-bottom: 40px;
    text-align: center;
}

.hero-info h1 {
    font-size: 3.2rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 35px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    font-weight: 400;
}

.hero-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: auto;
}

.hero-card {
    display: flex;
    position: relative; top: 70px; 
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
}

.hero-card:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-5px);
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.hero-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.hero-content h3 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 5px;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.hero-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    margin-bottom: -75px;
}

.stats-section {
    padding: 80px 20px;
    text-align: center;
    background-color: rgb(232, 239, 247);
    border-radius: 20px;
    margin: 40px auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    max-width: 1100px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #0a3c78;
    margin-bottom: 60px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #3777c5 0%, #0a3c78 100%);
    border-radius: 2px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.stat-item {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    text-align: center;
    border: 2px solid #e8f4ff;
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #0a3c78 0%, #1a6fb3 100%);
}

.stat-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.12);
    border-color: #c2e0ff;
}

.stat-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #0a3c78 0%, #1a6fb3 100%);
    color: white;
    font-size: 2.2rem;
    font-weight: bold;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    box-shadow: 0 10px 25px rgba(10, 60, 120, 0.2);
}

.stat-item h3 {
    font-size: 1.4rem;
    color: #0a3c78;
    margin-bottom: 15px;
    font-weight: 600;
}

.stat-item p {
    color: #666;
    line-height: 1.6;
    font-size: 1rem;
}

.services-section {
    padding: 60px 20px 100px;
    text-align: center;
    max-width: 1100px;
    margin: 0 auto;
}

.services-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; 
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    flex: 0 0 280px;
    min-height: 300px;
    padding: 20px 25px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    text-align: left;
    border: 2px solid #e8f4ff;
    position: relative;
    overflow: hidden;
}

.service-card > img {
    filter: brightness(0.5);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: rgb(7, 37, 82);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.12);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #0a3c78 0%, #1a6fb3 100%);
    color: white;
    font-size: 2.2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    box-shadow: 0 10px 25px rgba(10, 60, 120, 0.2);
}

.service-card h3 {
    font-size: 1.3rem;
    color: #0a3c78;
    margin-bottom: 15px;
    font-weight: 600;
}

.service-card p {
    border-radius: 18px;
    border: 1px solid linear-gradient(135deg, #0a3c78 0%, #1a6fb3 100%);
    color: white;
    line-height: 1.2;
    font-size: 1.3rem;
    font-weight: 400;
    text-shadow: #000000;
    z-index: 1;
}

.wave-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    overflow: hidden;
    z-index: 2;
}

.wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z' opacity='.25' fill='%23ffffff'/%3E%3Cpath d='M0,0V15.81C13,36.92,27.64,56.86,47.69,72.05,99.41,111.27,165,111,224.58,91.58c31.15-10.15,60.09-26.07,89.67-39.8,40.92-19,84.73-46,130.83-49.67,36.26-2.85,70.9,9.42,98.6,31.56,31.77,25.39,62.32,62,103.63,73,40.44,10.79,81.35-6.69,119.13-24.28s75.16-39,116.92-43.05c59.73-5.85,113.28,22.88,168.9,38.84,30.2,8.66,59,6.17,87.09-7.5,22.43-10.89,48-26.93,60.65-49.24V0Z' opacity='.5' fill='%23ffffff'/%3E%3Cpath d='M0,0V5.63C149.93,59,314.09,71.32,475.83,42.57c43-7.64,84.23-20.12,127.61-26.46,59-8.63,112.48,12.24,165.56,35.4C827.93,77.22,886,95.24,951.2,90c86.53-7,172.46-45.71,248.8-84.81V0Z' fill='%23ffffff'/%3E%3C/svg%3E");
    background-size: 50% 100%;
    animation: wave 12s linear infinite;
    opacity: 0.6;
}

.wave-1 {
    animation: wave 18s linear infinite;
    opacity: 0.4;
}

.wave-2 {
    animation: wave 15s linear infinite reverse;
    opacity: 0.3;
    animation-delay: -5s;
}

.wave-3 {
    animation: wave 20s linear infinite;
    opacity: 0.2;
    animation-delay: -2s;
}

@keyframes wave {
    0% {
        transform: translateX(0) translateZ(0) scaleY(1);
    }
    50% {
        transform: translateX(-25%) translateZ(0) scaleY(0.9);
    }
    100% {
        transform: translateX(-50%) translateZ(0) scaleY(1);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-info, .stat-item, .service-card {
    animation: fadeInUp 0.8s ease-out;
}

@media (max-width: 992px) {
    .hero {
        width: 90%;
        min-height: 650px;
    }
    
    .hero-info h1 {
        font-size: 2.7rem;
    }
    
    .hero-info {
        padding: 40px 30px;
    }
    
    .stats-section, .services-section {
        margin: 30px auto;
    }
}

@media (max-width: 768px) {
    .hero {
        width: 95%;
        min-height: 600px;
        margin: 15px auto;
        border-radius: 15px;
        background-attachment: scroll;
    }
    
    .hero-info h1 {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        padding: 0;
    }
    
    .hero-info {
        padding: 35px 25px;
        margin: 0 10px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .stats-grid, .services-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .hero-features {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .stats-section, .services-section {
        padding: 40px 20px;
        margin: 20px auto;
        border-radius: 15px;
    }
}

@media (max-width: 480px) {
    .hero-info h1 {
        font-size: 1.9rem;
    }
    
    .hero {
        min-height: 550px;
        width: 100%;
        border-radius: 0 0 15px 15px;
        margin: 0 auto 20px;
    }
    
    .hero-info {
        padding: 30px 20px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .hero-card {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .wave-container {
        height: 100px;
    }
    
    .hero-subtitle {
        margin-bottom: 20px;
    }
}

@media (max-width: 360px) {
    .hero-info {
        padding: 20px 15px;
        margin: 0 5px;
        top: 150px;
    }
    
    .hero-info h1 {
        font-size: 1.6rem;
        line-height: 1.3;
        margin-bottom: 15px;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
        line-height: 1.4;
        padding: 0 5px;
        margin-bottom: 20px;
    }
    
    .hero-card {
        padding: 15px;
        gap: 15px;
        top: 50px;
    }
    
    .hero-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .hero-content h3 {
        font-size: 1rem;
    }
    
    .hero-content p {
        font-size: 0.85rem;
    }
    
    .hero {
        min-height: 500px;
        background-attachment: scroll;
    }
}