.blog-container {
    max-width: 1560px;
    margin: 0 auto;

    @media screen and (max-width: 1600px) {
        padding: 0 16px;
    }
}

main {
    color: #101828;
    margin-top: 64px;

    @media screen and (min-width: 1201px) and (max-width:1600px) {
        margin-left: 16px !important;
    }

    @media screen and (max-width: 1300px) {
        margin-top: 24px;
    }
}

.hero {
    overflow: hidden;
    margin-top: 80px;
    color: white;
    background-color: #2F202D;

    @media screen and (max-width: 1100px){
        margin-top: 69px;
    }
    @media screen and (max-width: 996px){
        margin-top: 60px;
    }
    @media screen and (max-width: 374px){
        margin-top: 32px;
    }
}

.hero-inner-p-x {
    padding-left: 180px;
    z-index: 1;
    padding-right: 180px;

    @media screen and (max-width: 1600px){
        padding-left: 64px;
        padding-right: 64px;
    }
    @media screen and (max-width: 1000px){
        padding-left: 16px;
        padding-right: 16px;
    }
}

.hero-inner-p-y {
    padding-top: 64px;
    padding-bottom: 64px;

    @media screen and (max-width: 1000px){
        padding-bottom: 32px;
    }
}

.hero-title-padding-top {
    padding-top: 130px;


    @media screen and (max-width: 1100px){
        padding-top: 120px;
    }

    @media screen and (max-width: 991px){
        padding-top: 65px;
    }

    @media screen and (max-width: 374px){
        padding-top: 46px;
    }
}

.hero > .hero-inner {
    padding-top: 0 !important;
}

.hero-title {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hero-title h1 {
    margin: 0;
    font-weight: 700;
    color: white;

    @media screen and (max-width: 1700px){
        text-wrap: unset;
    }
    @media screen and (max-width: 1175px){
        text-wrap: balance;
    }
    @media screen and (max-width: 480px){
        text-wrap: unset;
    }

    font-size: 60px;
    @media screen and (max-width: 1300px) {
        font-size: 30px;
    }
}

.hero-left {
    display: flex;
    flex-direction: column;
    gap: 40px;

    @media screen and (max-width: 1000px){
        gap: 24px;
    }
}

.related-topbar {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-bottom: 32px;
    margin-top: 56px;

    @media screen and (max-width: 1600px) {
        /*padding: 0 16px;*/
    }

    @media screen and (max-width: 1199px) {
        margin-top: 0px;
        flex-wrap: wrap;
        gap: 16px;
    }

    @media screen and (max-width: 399px) {
        justify-content: center;
    }

}

.related-blogs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 32px;
    align-items: stretch;

    @media screen and (max-width: 1600px) {
        /*padding: 0 16px;*/
    }

    @media screen and (max-width: 999px) {
        grid-template-columns: repeat(1, 1fr);
    }

    @media screen and (max-width: 700px) {
        grid-template-columns: repeat(1, 1fr);
    }
}

.related-blogs > a {
    display: flex;
    flex-direction: column;
    /*min-width: 280px;*/
    /*max-width: 504px;*/
    cursor: pointer;
    color: inherit !important;
    text-decoration: unset !important;
}

.related-blogs > a > img {
    width: 100%;
    height: auto;
    max-height: 275px;
    object-fit: cover;
}

.related-blog__body {
    flex: 1;
    display: flex;
    height: 100%;
    flex-direction: column;
    padding: 32px;
    border: 1px solid #E4E7EC;
    border-top: 0;

    @media screen and (max-width: 999px) {
        padding: 16px;
    }
}

.related-blog__topbar {
    display: flex;
    flex-wrap: wrap;
    column-gap: 8px;
    color: #667085;
    font-size: 12px;
    margin-bottom: 8px;
}

.aside-bottom-marker {}

.related-blog__text {
}

.related-blog__text > h5 {
    margin-top: 0;
    margin-bottom: 12px;
}

.related-blog__text > h6 {
}


.blog-btn {
    background-color: #D4A773 !important;
    color: #2F202D !important;
    text-decoration: unset !important;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    display: inline-block;
}

.blog-btn.related {
    @media screen and (max-width: 360px) {
        margin-left: unset;
        width: 100%;
        text-align: center;
    }
}

.blog-btn:focus {
    outline: none;
}

.blog-btn:hover {
    opacity: 0.8;
}

.related-blogs > a {
    border: 1px white solid;
    transition: border ease-in-out 0.2s;
}

.related-blogs > a:hover {
    border: 1px #22334d solid;
}

.sl-overlay {
    background: #000 !important;
    opacity: 0.92 !important;
}

.sl-wrapper .sl-close,
.sl-wrapper .sl-navigation button,
.sl-wrapper .sl-counter,
.sl-wrapper .sl-caption {
    color: #fff !important;
}

.cta-icon {
    position: absolute;
    right: 0;
    height: 100%;
    max-height: 96px;
}

.case-study-single {
    --cs-dark: #1A1219;
    --cs-accent: #dda96d;
    --cs-muted: #f4f6fa;
    --cs-text: #101828;
    --cs-gray: #667085;

    width: 100%;
    color: var(--cs-text);
}

.case-study-single__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
    margin-bottom: 56px;
}

.case-study-single__title h1 {
    max-width: 780px;
    margin: 0;
    font-size: 42px;
    line-height: 1.14;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.case-study-single__logo-card {
    max-width: 200px;
    min-height: 118px;
    padding: 20px 28px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 16px 34px rgba(16, 24, 40, .16);
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    margin-top: 2px;
    border: 1px solid #E4E7EC;
}

.case-study-single__logo-card img {
    width: 100%;
}

.case-study-single__hero {
    margin-bottom: 22px;
}

.case-study-single__hero img {
    width: 100%;
}

.case-study-single__intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 84px;
    background: #F2F4F7;
    padding: 54px 42px 54px;
    margin-bottom: 70px;
}

.case-study-single__intro h2,
.case-study-single__actions h2 {
    margin: 0 0 24px;
    font-size: 24px;
    font-weight: 700;
}

.case-study-single__text {
    font-size: 16px;
    color: #717680;
}

.case-study-single__text p,
.case-study-testimonial-summary p
 {
    margin: 0 0 18px;
    color: #101828;
    font-size: 18px;
}

.case-study-single__client-highlight {
    font-size: 20px;
    margin-bottom: 20px;
}

.case-study-single__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.case-study-single__tags span {
    display: inline-flex;
    align-items: center;
    padding: 11px 13px;
    background: var(--cs-dark);
    color: #BFBABE;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1;
    font-weight: 600;
}

.case-study-step {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 80px;
    margin-bottom: 70px;
}

.case-study-step__aside {
    padding-top: 4px;
}

.case-study-step__marker {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 600;
    white-space: nowrap;
}

.case-study-step__number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--cs-accent);
    color: #2c1a10;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    line-height: 1;
    font-weight: 700;
    flex: 0 0 auto;
}

.case-study-step__content h2,
.case-study-testimonial-summary h2{
    margin: 0 0 28px;
    font-size: 36px;
    font-weight: 700;
    letter-spacing: -2%;
}

.case-study-list {
    list-style: none;
    padding: 0;
    margin: 30px 0 0;
}

.case-study-list li {
 position: relative;
    margin: 16px 0;
    font-size: 18px;
    font-weight: 600;
}

.case-study-list--dash li {
    padding-left: 44px;
}

.case-study-list--dash li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .75em;
    width: 24px;
    height: 3px;
    border-radius: 3px;
    background: #D4A773;
}

.case-study-list--check {
    margin-top: 30px;
}

.case-study-list--check li {
    gap: 16px;
    display: flex;
    align-items: center;
}

.case-study-list--check li::before {
    content: "";
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    background-image: url(https://taxcoach.pl/couch/uploads/image/circle-cs.png);
}

.case-study-step__image {
    margin: 34px 0 26px;
}

.case-study-step__image img {
    width: 100%;
}

.case-study-step__image figcaption {
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--cs-gray);
}

.case-study-cta {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    overflow: hidden;
    background: #2F202D;
    color: #fff;
    padding: 24px 64px 24px 46px;
    margin: 40px 0 0;
}

.case-study-cta__content {
    position: relative;
    z-index: 1;
}

.case-study-cta strong {
    display: block;
    margin-bottom: 2px;
    font-size: 20px;
    font-weight: 600;
}

.case-study-cta span {
    font-size: 15px;
    color: #BFBABE;
}

.case-study-cta a {
    text-decoration: none !important;
    z-index: 1;
    line-height: 1.1;
    flex: 0 1 auto;
    height: auto;
    align-self: center;
    position: relative;
    margin-left: auto;
    border-radius: 8px;
    padding: 16px 24px;
    display: inline-flex;
    flex-wrap: wrap;
    white-space: normal;
    text-align: center;
    justify-content: center;
    font-size: 16px;
    color: #2f202d;
    background-color: #d4a773;
    font-weight: 600;
}

.case-study-cta a:hover{
    opacity: 0.8;
}

.case-study-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    background: #2F202D;
    color: #fff;
    margin: 10px 0 90px;
    padding: 62px 52px;
    text-align: center;
}

.case-study-stats__item strong {
    display: block;
    margin-bottom: 11px;
    font-size: 40px;
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.case-study-stats__item span {
    display: block;
    font-size: 18px;
    line-height: 1.45;
}

.case-study-testimonial-wrap {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 80px;
    margin-top: -20px;
    margin-bottom: 72px;
}

.case-study-testimonial {
    background: var(--cs-muted);
    padding: 36px 38px;
    margin-top: 28px;
}

.case-study-testimonial__stars {
    margin-bottom: 22px;
}

.case-study-testimonial__lead {
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 700;
}

.case-study-testimonial__text {
    font-size: 16px;
    color: rgb(113, 118, 128);
}

.case-study-testimonial__link {
    color: inherit !important;
    font-size: 12px;
    text-decoration: underline;
    font-weight: 600;
}

.case-study-testimonial__author {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 28px;
}

.case-study-testimonial__author img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    flex: 0 0 auto;
}

.case-study-testimonial__author strong {
    display: block;
    font-size: 16px;
    line-height: 1.35;
    font-weight: 700;
}

.case-study-testimonial__author span {
    display: block;
    margin-top: 3px;
    font-size: 14px;
    line-height: 1.35;
    color: var(--cs-gray);
}

.related-blog__logo {
    margin-bottom: 12px;
}

.related-blog__logo img {
    padding: 8px 12px;
    border-radius: 8px;
    box-shadow: 0 16px 34px rgba(16, 24, 40, .16);
    margin-top: 18px;
    border: 1px solid #E4E7EC;
    max-height: 40px;
    object-fit: contain;
}

@media screen and (max-width: 1000px) {
    .case-study-layout .blog-container {
        max-width: none;
    }

    .case-study-single {
        padding: 0px 0 28px;
    }

    .case-study-single__header {
        display: block;
        margin-bottom: 28px;
    }

    .case-study-single__title h1 {
        max-width: 100%;
        margin-bottom: 18px;
        font-size: 30px;
        line-height: 1.16;
        letter-spacing: -0.025em;
    }

    .case-study-single__logo-card {
        width: 154px;
        min-height: 66px;
        padding: 12px 16px;
        margin: 0;
        box-shadow: 0 10px 22px rgba(16, 24, 40, .16);
    }

    .case-study-single__intro {
        display: block;
        padding: 28px 20px 32px;
        margin-bottom: 46px;
    }

    .case-study-single__intro h2,
    .case-study-single__actions h2 {
        margin-bottom: 17px;
        font-size: 20px;
    }

    .case-study-single__text {
        font-size: 14px;
        color: #717680;
    }

    .case-study-single__client-highlight {
        margin-top: 20px;
        font-size: 16px;
        line-height: 1.6;
    }

    .case-study-single__actions {
        margin-top: 32px;
    }

    .case-study-single__tags {
        gap: 8px;
    }

    .case-study-step {
        display: block;
        margin-bottom: 50px;
    }

    .case-study-step__aside {
        padding-top: 0;
        margin-bottom: 22px;
    }

    .case-study-step__marker {
        gap: 12px;
        font-size: 15px;
    }

    .case-study-step__number {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .case-study-step__content h2,
    .case-study-testimonial-summary h2 {
        margin-bottom: 20px;
        font-size: 26px;
        line-height: 1.18;
    }

    .case-study-list {
        margin-top: 26px;
    }

    .case-study-list li {
        margin: 14px 0;
        font-size: 16px;
        line-height: 1.58;
    }

    .case-study-cta {
        display: block;
        padding: 24px 20px 26px;
        margin: 32px 0 0;
    }

    .case-study-cta strong {
        font-size: 22px;
    }

    .case-study-cta span {
        max-width: 270px;
        font-size: 15px;
    }

    .case-study-cta a {
        min-height: 42px;
        margin-top: 20px;
        padding: 13px 20px;
        font-size: 15px;
    }

    .case-study-stats {
        grid-template-columns: 1fr;
        gap: 36px;
        margin: -2px 0 48px;
        padding: 44px 26px;
    }

    .case-study-stats__item strong {
        margin-bottom: 8px;
        font-size: 36px;
    }

    .case-study-stats__item span {
        max-width: 260px;
        margin: 0 auto;
        font-size: 16px;
    }

    .case-study-testimonial-wrap {
        display: block;
        margin-top: -4px;
        margin-bottom: 42px;
    }

    .case-study-testimonial {
        padding: 28px 22px;
    }

    .case-study-testimonial__stars {
        margin-bottom: 19px;
        font-size: 16px;
        letter-spacing: 2px;
    }

    .case-study-testimonial__link {
        font-size: 15px;
    }

    .case-study-testimonial__author {
        gap: 13px;
        margin-top: 24px;
    }

    .case-study-testimonial__author img {
        width: 44px;
        height: 44px;
    }

    .case-study-testimonial__author strong {
        font-size: 15px;
    }

    .case-study-testimonial__author span {
        font-size: 13px;
    }
    .case-study-single__text p, .case-study-testimonial-summary p{
        font-size: 16px;
    }
}

@media(max-width:1420px){
    .case-study-step,
    .case-study-testimonial-wrap {
    gap: 0px;
}
}

@media(min-width:1201px) and (max-width:1340px){
    .case-study-cta{
        padding: 24px 16px 24px 20px;
    }
    .case-study-cta a{
        padding: 12px 10px;
    }

}