/* ================================================================
   TerraFloor — single-post.css
   ================================================================ */

/* ---- Hero ---- */
.post-hero {
    padding-block: 48px 40px;
}

.post-hero__inner {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 40px;
   
}

.post-hero__title {
    color: var(--color-black);
    font-size: 45px;
    line-height: 51px;
    font-weight: 600;
    margin: 0;
}

.post-hero__subtitle {
    color: var(--color-gray);
    font-size: 17px;
    line-height: 27px;
    margin: 0;
}

.post-hero__image {
    border-radius: 40px;
    overflow: hidden;
    height: 528px;
}
.post-hero__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ---- Контентные блоки ---- */
.post-content-section {
    padding-block: 60px;
}

/* ---- Баннер ---- */
.post-banner {
    padding-block: 0 60px;
}

.post-banner__inner {
    border-radius: 60px;
    border: 19px solid rgba(249, 249, 249, 0.36);
    padding: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 36px;
    text-align: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    isolation: isolate;
}

.post-banner__inner::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 41px;
    box-shadow: inset 0 0 0 19px rgba(249, 249, 249, 0.36);
    pointer-events: none;
    z-index: 1;
}

.post-banner__icon {
    width: 69px;
    height: 69px;
    object-fit: contain;
    flex-shrink: 0;
}

.post-banner__text {
    color: var(--color-black);
    font-size: 26px;
    line-height: 34px;
    font-weight: 500;
    max-width: 842px;
    margin: 0;
}

.post-banner__btn {
    background: #A59A8A;
    color: var(--color-white);
    height: 55px;
    padding: 15px 30px;
    font-size: 18px;
    font-weight: 600;
}

/* ---- Related ---- */
.post-related {
    padding-block: 100px;
   background-image: url('/wp-content/uploads/2026/07/pohozhie.png') ;
       background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.post-related__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 40px;
}

.post-related__title {
    color: var(--color-black);
    font-size: 38px;
    line-height: 44px;
    font-weight: 600;
    margin: 0;
}

.post-related__all {
    background: #A59A8A;
    color: var(--color-white);
    height: 55px;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    flex-shrink: 0;
}

.post-related__grid {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.post-related__card {
    background: linear-gradient(180deg, #f8f8f8 0%, #fdf9f6 100%);
    border-radius: 40px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    flex: 1 1 calc(33.333% - 20px);
    min-width: 0;
}

.post-related__card-inner {
    display: flex;
    flex-direction: column;
    gap: 25px;
    flex: 1;
}

.post-related__img-wrap {
    display: block;
    border-radius: 20px;
    overflow: hidden;
    height: 200px;
}
.post-related__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}
.post-related__img-wrap:hover .post-related__img { transform: scale(1.03); }

.post-related__body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.post-related__card-title {
    color: var(--color-black);
    font-size: 21px;
    line-height: 26px;
    font-weight: 600;
    margin: 0;
}
.post-related__card-title a { text-decoration: none; color: inherit; }

.post-related__card-desc {
    color: var(--color-gray);
    font-size: 15px;
    line-height: 21px;
    margin: 0;
}

.post-related__btn {
    background: var(--color-black);
    color: var(--color-white);
    height: 55px;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    align-self: flex-start;
}

/* ================================================================
   Адаптив
   ================================================================ */
@media (max-width: 1280px) {
    .post-hero__title  { font-size: 34px; line-height: 40px; }
    .post-related__title { font-size: 28px; }
}

@media (max-width: 1024px) {
    .post-hero__image  { height: 380px; border-radius: 28px; }
    .post-banner__inner { padding: 60px 40px; border-radius: 40px; }
    .post-banner__text { font-size: 20px; }
    .post-related__card { flex: 1 1 calc(50% - 15px); }
}

@media (max-width: 768px) {
    .post-hero__title  { font-size: 26px; line-height: 32px; }
    .post-hero__image  { height: 240px; border-radius: 20px; }
    .post-banner__inner { padding: 40px 24px; border-radius: 24px; border-width: 10px; }
    .post-banner__text { font-size: 18px; }
    .post-related__head { flex-direction: column; align-items: flex-start; }
    .post-related__card { flex: 1 1 100%; padding: 24px; border-radius: 24px; }
    .post-related__btn  { align-self: stretch; justify-content: center; }

.post-related {
    padding-block: 50px;

}
}