.wag-textwhale-container {
    width: 100%;
    position: relative;
    margin: 20px 0;
    border-radius: 16px;
    overflow: hidden;
    min-height: 660px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.wag-textwhale-background-layer {
    background: #3b5762;
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
}

.wag-textwhale-background-layer {
    background: #3B5762;
}

.wag-textwhale-content {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 40px;
    z-index: 2;
}

.wag-textwhale-text-content {
    width: 100%;
    max-width: 927px;
    text-align: center;
    position: relative;
    margin-bottom: 40px;
}

.wag-textwhale-quote {
    color: #ffffff;
    text-align: center;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.6;
    margin: 0 auto 50px;
    max-width: 900px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
    position: relative;
    z-index: 3;
}

.wag-textwhale-illustration {
    width: 100%;
    max-width: 500px;
    height: auto;
    margin: 0 auto;
    position: relative;
    z-index: 3;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.4));
}

.wag-textwhale-illustration::before {
    content: '';
    display: block;
    padding-top: 75%;
    background: url('/static/wagtail/blocks/whaletext/whale.png') center no-repeat;
    background-size: contain;
}

/* Анимация для иллюстрации */
@keyframes float {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
    100% {
        transform: translateY(0);
    }
}

.wag-textwhale-illustration {
    animation: float 8s ease-in-out infinite;
}

/* Адаптивность */
@media (max-width: 1000px) {
    .wag-textwhale-container {
        height: 700px;
    }

    .wag-textwhale-quote {
        margin-bottom: 40px;
    }
}

@media (max-width: 768px) {
    .wag-textwhale-container {
        height: 750px;
    }

    .wag-textwhale-quote {
        margin-bottom: 30px;
    }

    .wag-textwhale-content {
        padding: 30px 0px;
    }

    .wag-textwhale-illustration {
        max-width: 400px;
    }
}

@media (max-width: 600px) {
    .wag-textwhale-container {
        height: 800px;
    }

    .wag-textwhale-quote {
        line-height: 1.5;
        margin-bottom: 25px;
    }

    .wag-textwhale-illustration {
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .wag-textwhale-container {
        height: 850px;
    }

    .wag-textwhale-content {
        padding: 0;
    }

    .wag-textwhale-quote {
        font-size: 16px;
    }

    .wag-textwhale-illustration {
        max-width: 250px;
    }
}
