/* Kutyavarazslo.hu - középső rész */
.home-middle {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 34px 0 26px;
    color: #2a1832;
    font-family: Arial, sans-serif;
}

.about-card {
    display: grid;
    grid-template-columns: 44% 56%;
    overflow: hidden;
    min-height: 340px;
    border-radius: 18px;
    background: linear-gradient(135deg, #32133f 0%, #1f0d28 100%);
    box-shadow: 0 18px 50px rgba(39, 14, 49, .12);
}

.about-image {
    position: relative;
    min-height: 340px;
    overflow: hidden;
    background: #2a1234;
}

.about-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 65%, rgba(31,13,40,.45) 100%);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.about-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 54px 56px;
    color: #fff;
}

.about-content h2,
.pet-form-content h2,
.section-heading h2 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 500;
}

.about-content h2 {
    margin-bottom: 22px;
    color: #f2c75d;
    font-size: clamp(34px, 4vw, 52px);
}

.about-content p {
    max-width: 560px;
    margin: 0 0 16px;
    font-size: 17px;
    line-height: 1.62;
}

.about-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 20px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 24px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-gold {
    background: linear-gradient(90deg, #f1cb66, #e7b842);
    color: #24102f;
    box-shadow: 0 10px 24px rgba(0,0,0,.16);
}

.button-outline {
    border: 1px solid #e8b84b;
    color: #f4d576;
    background: rgba(255,255,255,.02);
}

.button-purple {
    background: linear-gradient(90deg, #5b2071, #371542);
    color: #f7d56c;
    box-shadow: 0 10px 22px rgba(55,21,66,.2);
}

.button-light-outline {
    border: 1px solid #d5a542;
    color: #6b4912;
    background: #fff;
}

.pet-form-card {
    position: relative;
    display: grid;
    grid-template-columns: 170px 1fr auto;
    align-items: center;
    gap: 30px;
    margin-top: 22px;
    padding: 28px 34px;
    overflow: hidden;
    border: 1px solid #dfa940;
    border-radius: 18px;
    background: linear-gradient(90deg, #fffdf9 0%, #fff9ef 100%);
}

.pet-form-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.pet-form-icon img {
    width: 120px;
    height: 120px;
    object-fit: contain;
}

.pet-form-content {
    position: relative;
    z-index: 2;
}

.eyebrow {
    display: inline-block;
    color: #a26f1d;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .08em;
}

.pet-form-content h2 {
    margin: 7px 0 10px;
    color: #2b1933;
    font-size: clamp(28px, 3.1vw, 42px);
}

.pet-form-content p {
    max-width: 660px;
    margin: 0;
    color: #4d3c54;
    font-size: 15px;
    line-height: 1.55;
}

.pet-form-action {
    position: relative;
    z-index: 2;
}

.pet-form-sparkles {
    position: absolute;
    right: 32px;
    top: 18px;
    display: flex;
    gap: 9px;
    color: #efc55f;
    font-size: 21px;
    transform: rotate(-10deg);
    opacity: .8;
}

.knowledge-section {
    padding: 34px 0 0;
}

.section-heading {
    text-align: center;
}

.section-heading h2 {
    margin-top: 8px;
    color: #2d1937;
    font-size: clamp(34px, 4vw, 54px);
}

.knowledge-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-top: 28px;
}

.knowledge-card {
    overflow: hidden;
    border: 1px solid #e2d7c9;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(58, 38, 62, .06);
}

.knowledge-card img {
    width: 100%;
    aspect-ratio: 1.65 / 1;
    display: block;
    object-fit: cover;
}

.knowledge-card-content {
    padding: 22px 24px 24px;
}

.knowledge-card h3 {
    margin: 0 0 12px;
    color: #2c1833;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 21px;
    line-height: 1.24;
}

.knowledge-card p {
    margin: 0 0 18px;
    color: #5a4b5d;
    font-size: 14px;
    line-height: 1.55;
}

.knowledge-card a {
    color: #b57615;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
}

.knowledge-card a:hover {
    color: #7f4c05;
}

.knowledge-more {
    display: flex;
    justify-content: center;
    margin-top: 22px;
}

@media (max-width: 980px) {
    .about-card {
        grid-template-columns: 1fr;
    }

    .about-image {
        min-height: 320px;
    }

    .about-image::after {
        background: linear-gradient(180deg, transparent 70%, rgba(31,13,40,.6) 100%);
    }

    .pet-form-card {
        grid-template-columns: 130px 1fr;
    }

    .pet-form-action {
        grid-column: 2;
    }

    .knowledge-grid {
        grid-template-columns: 1fr 1fr;
    }

    .knowledge-card:last-child {
        grid-column: 1 / -1;
        max-width: calc(50% - 11px);
        width: 100%;
        justify-self: center;
    }
}

@media (max-width: 680px) {
    .home-middle {
        width: min(100% - 24px, 1180px);
        padding-top: 20px;
    }

    .about-content {
        padding: 34px 26px;
    }

    .about-actions {
        flex-direction: column;
    }

    .button {
        width: 100%;
    }

    .pet-form-card {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 28px 22px;
    }

    .pet-form-action {
        grid-column: auto;
    }

    .pet-form-sparkles {
        display: none;
    }

    .knowledge-grid {
        grid-template-columns: 1fr;
    }

    .knowledge-card:last-child {
        grid-column: auto;
        max-width: none;
    }
}