/* ---------- INTRO (текст + картинка с анимацией) ---------- */

.intro-section {
    background: radial-gradient(circle at top left, #e9fffa 0%, #fbfbfb 55%, #ecf7f4 100%);
    padding: 70px 0 60px;
    overflow: hidden;
}

.intro-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 48px;
    max-width: var(--container);
    margin: 0 auto;
}

.intro-text {
    flex: 1 1 420px;
    font-size: 1.05rem;
    line-height: 1.8;
    color: #425553;
}

    .intro-text p {
        margin-bottom: 24px;
    }

/* акцент в тексте */
.intro-highlight {
    color: var(--primary);
    font-weight: 700;
}

/* список преимуществ */
.benefits-list {
    margin-top: 10px;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

    .benefits-list li {
        padding: 12px 16px;
        font-size: 0.94rem;
        font-weight: 600;
        color: var(--text);
        background: linear-gradient(135deg, #e2fdf6 0%, #c9f2e9 100%);
        border-radius: 12px;
        border-left: 3px solid var(--primary);
        text-align: left;
    }

/* картинка + анимированный фон */

.intro-image {
    flex: 1 1 340px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

    .intro-image::before,
    .intro-image::after {
        content: "";
        position: absolute;
        border-radius: 50%;
        opacity: 0.95;
        z-index: 0;
    }

    /* сияющее кольцо */
    .intro-image::before {
        width: 360px;
        height: 360px;
        max-width: 90vw;
        max-height: 90vw;
        background: radial-gradient(circle, rgba(19, 179, 155, 0.8) 0%, rgba(19, 179, 155, 0.3) 35%, transparent 70%);
        box-shadow: 0 0 40px rgba(19, 179, 155, 0.6), 0 0 80px rgba(19, 179, 155, 0.35);
        animation: brightHalo 7s ease-in-out infinite alternate;
    }

    /* волна / лента */
    .intro-image::after {
        width: 420px;
        height: 240px;
        max-width: 110%;
        background: linear-gradient(120deg, rgba(255, 255, 255, 0.1) 0%, rgba(140, 234, 212, 0.9) 40%, rgba(19, 179, 155, 0.4) 80%, rgba(2, 119, 89, 0.7) 100%);
        transform-origin: 50% 50%;
        animation: brightWave 6s ease-in-out infinite alternate;
    }

    /* фото */
    .intro-image img {
        width: 320px;
        max-width: 100%;
        aspect-ratio: 1 / 1;
        object-fit: cover;
        border-radius: 24px;
        box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
        position: relative;
        z-index: 1;
    }

/* ---------- АНИМАЦИИ ---------- */

@keyframes brightHalo {
    0% {
        transform: translateY(12px) scale(0.9);
        opacity: 0.7;
    }

    30% {
        transform: translateY(-4px) scale(1.02);
        opacity: 1;
    }

    70% {
        transform: translateY(0) scale(1.08);
        opacity: 0.9;
    }

    100% {
        transform: translateY(6px) scale(1);
        opacity: 0.8;
    }
}

@keyframes brightWave {
    0% {
        transform: translateX(14%) translateY(14%) rotate(-26deg) scale(0.96);
        opacity: 0.85;
    }

    40% {
        transform: translateX(4%) translateY(6%) rotate(-12deg) scale(1.05);
        opacity: 1;
    }

    70% {
        transform: translateX(10%) translateY(10%) rotate(-20deg) scale(1.02);
        opacity: 0.95;
    }

    100% {
        transform: translateX(6%) translateY(16%) rotate(-30deg) scale(0.98);
        opacity: 0.9;
    }
}

/* ---------- RESPONSIVE только для intro ---------- */

@media (max-width: 1024px) {
    .intro-content {
        gap: 36px;
    }

    .intro-image img {
        width: 280px;
    }

    .intro-image::before {
        width: 300px;
        height: 300px;
    }

    .intro-image::after {
        width: 360px;
        height: 220px;
    }
}

@media (max-width: 768px) {
    .intro-section {
        padding: 60px 0 50px;
    }

    .intro-content {
        flex-direction: column;
        align-items: center;
    }

    .intro-text {
        text-align: center;
    }

    .benefits-list {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .intro-image img {
        width: 260px;
    }

    .intro-image::before {
        width: 260px;
        height: 260px;
    }

    .intro-image::after {
        width: 300px;
        height: 200px;
        transform: translateX(4%) translateY(12%) rotate(-18deg);
    }
}

@media (max-width: 480px) {
    .intro-section {
        padding: 50px 0;
    }

    .intro-image img {
        width: 220px;
    }

    .intro-image::before {
        width: 220px;
        height: 220px;
    }

    .intro-image::after {
        width: 260px;
        height: 180px;
        transform: translateX(2%) translateY(14%) rotate(-16deg);
    }

    .benefits-list li {
        font-size: 0.9rem;
    }
}

/* ===== TYPES SECTION ===== */

.types-section {
    padding: 60px 0;
    background: #f8fafc;
}

.types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 350px));
    gap: 24px;
    justify-content: center;
}

.type-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    transition: transform .4s var(--ease-smooth), box-shadow .4s ease, border-color .4s ease;
}

    .type-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 18px 40px rgba(19,179,155,0.18);
        border-color: rgba(19,179,155,0.3);
    }

        .type-card:hover .card-number {
            opacity: 1;
            transform: scale(1.1);
        }

.card-number {
    transition: opacity .35s ease, transform .35s var(--ease-bounce);
}

.type-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.card-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-accent, #3eb59c);
    opacity: 0.5;
}

.type-card h3 {
    margin: 0;
    font-size: 1.25rem;
}

.type-card p {
    color: #64748b;
    margin-bottom: 16px;
}

.type-features {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.feature {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    padding: 6px 0;
    border-bottom: 1px dashed #e2e8f0;
}

    .feature:last-child {
        border-bottom: none;
    }

.feature-label {
    color: #64748b;
}

.feature-value {
    font-weight: 600;
    color: #1e293b;
}

/* ===== GALLERY SECTION ===== */

.gallery-section {
    padding: 60px 0;
    background: #fff;
}

.gallery-header {
    text-align: center;
    margin-bottom: 32px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-item {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    background: #fff;
    transition: transform .4s var(--ease-smooth), box-shadow .4s ease;
}

    .gallery-item:hover {
        transform: translateY(-6px);
        box-shadow: 0 18px 40px rgba(19,179,155,0.2);
    }

.gallery-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

    .gallery-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform .6s var(--ease-smooth);
    }

.gallery-item:hover .gallery-image img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    inset: auto 0 0 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: #fff;
    padding: 40px 12px 12px;
    font-weight: 600;
    text-align: center;
}

.gallery-info {
    padding: 16px;
}

    .gallery-info h3 {
        margin: 0 0 4px;
        font-size: 1rem;
    }

.gallery-meta {
    color: #64748b;
    font-size: 0.875rem;
}

/* Общий responsive для сеток */

@media (max-width: 768px) {
    .types-grid,
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 480px) {
    .ba-image-wrapper,
    .after-image {
        height: 250px;
    }
}


/* ===== CONSISTENT SERVICE PRICING CARDS =====
   Keep headings, price panels and CTAs aligned across every service detail page. */
.service-detail-page .card-grid--pricing {
    align-items: stretch;
}

.service-detail-page .card-grid--pricing .card--pricing {
    height: 100%;
    box-sizing: border-box;
}

/* Featured pricing cards keep their highlight but do not float/scale out of row alignment. */
.service-detail-page .card-grid--pricing .card--pricing.card--featured,
.service-detail-page .card-grid--pricing .card--pricing.featured {
    transform: none;
    animation: none;
}

.service-detail-page .card--pricing .card__header {
    min-height: 136px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.service-detail-page .card--pricing .card__header h3 {
    margin-top: 0;
    margin-bottom: 8px;
    line-height: 1.35;
}

.service-detail-page .card--pricing .card__desc {
    margin-top: 0;
    margin-bottom: 0;
    line-height: 1.45;
}

.service-detail-page .card--pricing .card__price {
    min-height: 108px;
    box-sizing: border-box;
    flex-wrap: nowrap;
    margin-top: 0;
    margin-bottom: 20px;
}

.service-detail-page .card--pricing .card__price .amount {
    white-space: nowrap;
    font-size: clamp(2rem, 2.55vw, 2.5rem);
    line-height: 1.05;
}

.service-detail-page .card--pricing .card__price .currency {
    flex: 0 0 auto;
}

.service-detail-page .card--pricing .card__list {
    margin-top: 0;
    flex: 1 1 auto;
}

.service-detail-page .card--pricing > .btn-primary {
    margin-top: auto;
    min-height: 62px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

@media (max-width: 640px) {
    .service-detail-page .card--pricing .card__header {
        min-height: 0;
    }

    .service-detail-page .card--pricing .card__price {
        min-height: 92px;
    }

    .service-detail-page .card--pricing .card__price .amount {
        font-size: clamp(1.95rem, 9vw, 2.35rem);
    }
}
