.hero {
    position: relative;
}

.hero::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 48px;
    z-index: -1;
    background: url('../img/decor.svg') repeat-x;
    bottom: 106px;
}

.hero-inner {
    display: flex;
    gap: 28px;
    position: relative;
}

.hero-info {
    max-width: 492px;
}

.hero-title {
    font-family: "Oswald", sans-serif;
    font-weight: 600;
    font-size: 62px;
    line-height: 115%;
    text-transform: uppercase;
    color: #2c332f;
    margin-bottom: 40px;
}

.hero-info h1 strong { 
    color: #3596ed;
    font-weight: 600;
}

.hero-info p {
    margin-bottom: 130px;
    max-width: 439px;
}

.hero-img {
    display: flex;
    position: relative;
}

.hero-choose {
    position: absolute;
    border: 1px solid #535755;
    padding: 22px;
    max-width: 162px;
    background: rgba(255, 255, 255, 0.9);
    text-align: center;
    color: #2c332f;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
}

.hero-button { 
    display: inline-block;
    padding: 19px 30px;
    max-width: 270px;
    background: #3596ed;
    font-weight: 500;
    font-size: 15px;
    line-height: 130%;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    text-align: center;
    color: #fff;
    border: none;
    text-decoration: none;
    transition: opacity 0.2s, background 0.2s;

}

.hero-button:hover {
    opacity: 0.75;
}

.hero-button:active {
    background: #2486db;
}

.news-title {
    font-family: "Oswald", sans-serif;
    font-weight: 600;
    font-size: 48px;
    line-height: 115%;
    text-transform: uppercase;
    color: #2c332f;
    margin-bottom: 40px;
}

.news-container {
    display: flex;
    justify-content: space-between;
}

.news-article {
    border: 1px solid #d3cbd9;
    max-width: 284px;
    background: #fff;
    overflow: hidden;
}

.news-article img {
    display: block;
}

.news-info {
    padding: 20px 20px 0 20px;
}

.news-info time {
    font-weight: 300;
    font-size: 14px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #858e8a;
}

.news-info  h3 {
    font-weight: 400;
    font-size: 16px;
    line-height: 130%;
    color: #2c332f;
    margin: 8px 0 12px;
}

.footer-news {
    padding: 0 20px 20px 20px;
}

.news-link {
    font-weight: 400;
    font-size: 16px;
    line-height: 130%;
    color: #3596ed;
    text-decoration: none;
    transition: opacity 0.2s;
}

.news-link::after {
    content: "";
    display: inline-block;
    width: 22px;
    height: 9px;
    background-image: url(../img/Arrow.svg);
    transform: translateX(8px);
    transition: transform 0.2s;
}

.news-link:hover::after {
    transform: translateX(13px);
}

.news-link:hover {
    opacity: 0.75;
}

.faq-container {
    display: flex;
    gap: 28px;
}

.faq-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.faq-details details p {
    padding: 0 20px 20px 20px;
}

details {
    border-bottom: 1px solid #d3cbd9;
    border-top: 1px solid #d3cbd9;
    position: relative;
}

summary {
    font-family: "Oswald", sans-serif;
    font-weight: 500;
    font-size: 23px;
    line-height: 115%;
    text-transform: uppercase;
    color: #2c332f;
    padding: 20px 49px 20px 20px;
    list-style-type: none;
    cursor: pointer;
}

summary::after {
    content: "";
    display: inline-block;
    background-image: url(../img/arrow-down.svg);
    width: 17px;
    height: 22px;
    transition: transform 0.2s;
    cursor: pointer;
    position: absolute;
    top: 23px;
    right: 20px;
}

details[open] summary::after {
    transform: rotateX(180deg);
}

.faq {
    position: relative;
}

.faq::after {
    content: "";
    position: absolute;
    width: 528px;
    height: 48px;
    width: calc(50% - 200px);
    z-index: -1;
    background: url(../img/decor-2.svg) repeat-x;
    bottom: 363px;
}

@media (width <= 1440px) {
    .hero-img img {
        width: 50%;
        object-fit: cover;
    }
}

@media (width <= 1200px) {
    .container {
        max-width: 992px;
    }

    .news-title {
        text-align: center;
    }

    .news-container {
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
        justify-content: center;
    }

    .news-article {
        max-width: 350px;
    }

    .header-news img {
        width: 100%;
    }

    .faq-img img {
        object-fit: cover;
        width: 100%;
    }

    .faq:after {
        display: none;
    }
}

@media (width <= 992px) {
    .hero-inner {
        display: flex;
        flex-direction: column;
    }

    .container {
        max-width: 768px;
    }

    .hero::after {
        display: none;
    }

    .hero-info {
        text-align: center;
        margin: 0 auto;
    }

    .nav {
        margin-bottom: 30px;
    }

    .hero-info p {
        max-width: 492px;
        margin-bottom: 30px;
    }

    .faq-container {
        flex-direction: column-reverse;
    }

    .faq-img img {
        display: none;
    }
}

@media (width <= 768px) {
    .container {
        max-width: 576px;
    }

    .section {
        margin-bottom: 100px;
    }

    .hero-title {
        font-size: 52px;
        margin-bottom: 30px;
    }

    .news-title {
        font-size: 40px;
    }

    summary {
        font-size: 20px;
    }
}

@media (width <= 576px) {
    .container {
        max-width: 445px;
    }

    .news-title {
        font-size: 35px;
    }

    .hero-title {
        font-size: 42px;
        margin-bottom: 20px;
    }

    .hero-info p {
        margin-bottom: 20px;
    }

    .hero-choose {
        font-size: 14px;
        padding: 10px;
        max-width: 130px;
    }

    .hero-img img {
        width: 50%;
        height: 400px;
    }

    summary {
        font-size: 18px;
    }

    .section {
        margin-bottom: 80px;
    }
}


