:root{
    --link-color: #849BDF;
    --link-visited-color: #E89BA9;
}
h1 {
    font-size: 3.6rem;
    font-weight: 550;
    line-height: 0.98;
}
h2 {
    font-size: 2rem;
    font-weight: 550;
    line-height: 1.4;
}
h3 {
    font-size: 1.8rem;
    font-weight: 550;
    line-height: 1.4;
}
h4 {
    font-size: 1.6rem;
    font-weight: 550;
    line-height: 1.4;
}
h5 {
    font-size: 1.4rem;
    font-weight: 550;
    line-height: 1.4;
}
img {
    height: auto;
    max-width: 100%;
}
.alignnone {
    margin: 5px 20px 20px 0;
}

.aligncenter,
div.aligncenter {
    display: block;
    margin: 5px auto 5px auto;
}

.alignright {
    float:right;
    margin: 5px 0 20px 20px;
}

.alignleft {
    float: left;
    margin: 5px 20px 20px 0;
}

img.alignright {
    float: right;
    margin: 5px 0 20px 20px;
}

img.alignnone {
    margin: 5px 20px 20px 0;
}

img.alignleft {
    float: left;
    margin: 5px 20px 20px 0;
}

img.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

a {
    text-decoration: none;
    color: var(--link-color);
    font-weight: 600;
}
a:visited {
    color: var(--link-visited-color);
    text-decoration: underline;
    font-weight: 550;
}

header a, header a:visited, header a:hover, footer a, footer a:visited, footer a:hover {
    text-decoration: none;
    color: white;
    font-weight: 400;
}

/*page template*/
.content-area .site-main {
    display: block;
}
.main__block, .main__post {
    padding-top: 3.6rem;
    margin-bottom: 8rem;
}
.main__block h1 {
    align-self: flex-start;
    margin-bottom: 5.6rem;
}
.main__block h2 {
    font-size: 2rem;
    font-weight: 550;
    margin-bottom: 3.6rem;
}
.main__block p, .main__post p {
    font-size: 1.8rem;
    color: #323232;
}
.main__block p:not(:last-child) {
    margin-bottom: 2.4rem;
}
.main__block p:nth-of-type(2n) {
    margin-bottom: 5.6rem;
}
.main__block img {
    width: 100%;
}
.blog__content {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 3.2rem 2.4rem;
}
.blog__content .post {
    background-image: var(--bg-post);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
    aspect-ratio: 636/409;
    transition: background-size 1.4s ease-in-out 0s;
    width: 100%;
}

.post-txt {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    background-color: rgb(255,255,255,0.6);
    font-size: 1.8rem;
    padding: 2.3rem 2.4rem;
    
}
a.page-numbers:visited {
    color: black;
}
/*post template*/
.main__post h1{
    margin-bottom: 3.6rem;
}
.main__post p:not(:last-child) {
    margin-bottom: 2.4rem;
}
.main__post p > img {
    padding-block: 1.2rem;
    max-width: 100%;
} 

@media  screen and (max-width: 576px) {
    h1 {
        font-size: 2.4rem;
    }
    .main__block, .main__block-feedbacks, .main__block-contacts, .main__shop, .main__single-product, .main__post {
        margin-bottom: 4rem;
    }
    .main__block .woocommerce-breadcrumb, .main__post .woocommerce-breadcrumb {
        margin-bottom: 2.4rem;
        font-size: 1.6rem;
    }
    .main__block .woocommerce-breadcrumb svg, .main__post .woocommerce-breadcrumb svg {
        margin-inline: 1rem;
    }
    .main__block p:last-child  {
        margin-bottom: 3.6rem;
    }
    .main__block h3 {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
    .main__block p:not(:last-child) {
        margin-bottom: 2rem;
    }
    .main__block p, .main__post p {
        font-size: 1.6rem;
    }
    .main__collections .section-collection__content {
        padding: 0;
    }
    /*mobile blog page*/
    .main__blog h1, .main__block-contacts h1, .main__block h1, .main__block-feedbacks h1, .main__collections h1 {
        margin-bottom: 2.4rem;
    }
    .blog__content .post {
        width: 100%;
    }
    .post-txt {
        padding: 1.2rem 2rem;
    }
    .post-txt svg{
        width: 0.8rem;
        height: 1.6rem;
    }
    .post-txt h3 {
        margin: 0;
    }
}
@media  screen and (min-width: 577px) and (max-width: 767px) {
    h1 {
        font-size: 2.4rem;
    }
    .main__block, .main__block-feedbacks, .main__block-contacts, .main__shop, .main__single-product, .main__post {
        margin-bottom: 4rem;
    }
    .main__block .woocommerce-breadcrumb, .main__post .woocommerce-breadcrumb {
        margin-bottom: 2.4rem;
        font-size: 1.6rem;
    }
    .main__block .woocommerce-breadcrumb svg, .main__post .woocommerce-breadcrumb svg {
        margin-inline: 1rem;
    }
    .main__block p:last-child  {
        margin-bottom: 3.6rem;
    }
    .main__block h3 {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
    .main__block p:not(:last-child) {
        margin-bottom: 2rem;
    }
    .main__block p, .main__post p {
        font-size: 1.6rem;
    }
    .main__collections .section-collection__content {
        padding: 0;
    }
    /*mobile blog page*/
    .main__blog h1, .main__block-contacts h1, .main__block h1, .main__block-feedbacks h1, .main__collections h1 {
        margin-bottom: 2.4rem;
    }
    .post-txt {
        padding: 1.2rem 2rem;
    }
    .post-txt svg{
        width: 0.8rem;
        height: 1.6rem;
    }
    .blog__content .post {
        width: 100%;
    }
    .post-txt h3 {
        margin: 0;
    }
}
@media screen and ( max-width: 767px ) {
    .blog__content {
        gap: 2rem;
        grid-template-columns: 1fr;
    }
}