/* === Reset and base styles === */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    font-size: 17px;
    color: #232d39;
    background: #f7f8fa;
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

ul, li {
    list-style: none;
}

/* === Header === */
.header {
    background: #fff;
    box-shadow: 0 2px 18px 0 rgba(37, 60, 90, 0.07);
    position: sticky;
    top: 0;
    z-index: 100;
    min-height: 62px;
}
.header__container {
    max-width: 1220px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    height: 64px;
    justify-content: space-between;
}
.header__logo img {
    height: 38px;
    display: block;
}
.header__nav ul {
    display: flex;
    gap: 28px;
}
.header__nav li a {
    padding: 6px 0 4px 0;
    font-weight: 500;
    font-size: 1rem;
    border-bottom: 2px solid transparent;
    transition: border-color 0.18s, color 0.18s;
}
.header__nav li a:hover,
.header__nav li a.active {
    color: #2771e7;
    border-bottom: 2px solid #2771e7;
}

/* === Burger menu for mobile === */
.header__burger {
    display: none;
    width: 38px;
    height: 38px;
    background: none;
    border: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    z-index: 101;
}
.header__burger span {
    display: block;
    width: 26px;
    height: 3px;
    background: #232d39;
    border-radius: 2px;
    transition: 0.25s;
}

/* === Adaptive === */
@media (max-width: 900px) {
    .header__container {
        padding: 0 10px;
        height: 54px;
    }
    .header__logo img {
        height: 32px;
    }
    .header__nav ul {
        gap: 18px;
    }
    body {
        font-size: 16px;
    }
}
@media (max-width: 700px) {
    .header__container {
        height: 48px;
    }
    .header__burger {
        display: flex;
    }
    .header__nav {
        position: fixed;
        top: 0;
        right: 0;
        background: #fff;
        height: 100vh;
        width: 220px;
        box-shadow: -2px 0 16px 0 rgba(40,50,70,0.09);
        transform: translateX(100%);
        transition: transform 0.26s cubic-bezier(.8,0,.22,1);
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: start;
        padding: 64px 20px 0 20px;
        z-index: 200;
    }
    .header__nav ul {
        flex-direction: column;
        gap: 22px;
        width: 100%;
    }
    .header__nav.nav--open {
        transform: translateX(0);
    }
    .no-scroll {
        overflow: hidden;
        height: 100vh;
    }
}
/* === Footer === */
.footer {
    background: #212c39;
    color: #eef2f7;
    padding: 38px 0 24px 0;
    font-size: 1rem;
    margin-top: 42px;
}
.footer__container {
    max-width: 1220px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 32px;
}
.footer__logo img {
    height: 32px;
    filter: grayscale(10%) brightness(2.1);
    margin-bottom: 8px;
}
.footer__copyright {
    font-size: 14px;
    opacity: 0.7;
    margin-top: 6px;
}
.footer__nav ul {
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
}
.footer__nav li a {
    color: #eef2f7;
    font-size: 1rem;
    opacity: 0.94;
    transition: color 0.2s, opacity 0.2s;
    padding: 3px 0;
}
.footer__nav li a:hover {
    color: #42a4ff;
    opacity: 1;
}
.footer__contacts {
    font-size: 14px;
    opacity: 0.8;
}

/* Адаптивность */
@media (max-width: 900px) {
    .footer__container {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px 0;
    }
    .footer {
        padding: 30px 0 18px 0;
        font-size: 0.98rem;
    }
}
@media (max-width: 700px) {
    .footer {
        font-size: 0.96rem;
        padding: 22px 0 12px 0;
    }
    .footer__logo img {
        height: 26px;
    }
    .footer__container {
        padding: 0 10px;
    }
    .footer__nav ul {
        gap: 13px;
    }
}
.main {
    padding-top: 24px;
}
.hero {
    background: linear-gradient(105deg, #eaf2fe 70%, #f5fbfa 100%);
    padding: 46px 0 42px 0;
}
.hero__content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}
.hero__info {
    flex: 1 1 340px;
    min-width: 270px;
}
.hero__info h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 18px;
    color: #2771e7;
}
.hero__info p {
    font-size: 1.1rem;
    margin-bottom: 28px;
    color: #212c39;
}
.hero__cta {
    display: inline-block;
    background: #2771e7;
    color: #fff;
    font-weight: 500;
    font-size: 1.08rem;
    padding: 12px 36px;
    border-radius: 24px;
    box-shadow: 0 2px 8px 0 rgba(39,113,231,0.11);
    transition: background 0.2s, box-shadow 0.2s;
}
.hero__cta:hover {
    background: #42a4ff;
    box-shadow: 0 4px 14px 0 rgba(66,164,255,0.12);
}
.hero__img img {
    max-width: 410px;
    border-radius: 18px;
    box-shadow: 0 4px 32px 0 rgba(80,140,230,0.09);
}

/* Sections */
.section {
    margin: 0 auto 46px auto;
    max-width: 1200px;
    padding: 0 24px;
}
.section__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
    gap: 24px;
}
.section__header h2 {
    font-size: 1.45rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
}
.section__more {
    color: #2771e7;
    font-weight: 500;
    font-size: 1.04rem;
    transition: color 0.19s;
}
.section__more:hover {
    color: #42a4ff;
    text-decoration: underline;
}

/* News List */
.news-list {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}
.news-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 1px 8px 0 rgba(37,60,90,0.09);
    overflow: hidden;
    flex: 1 1 270px;
    min-width: 240px;
    max-width: 380px;
    transition: box-shadow 0.19s;
}
.news-card:hover {
    box-shadow: 0 6px 26px 0 rgba(40,100,220,0.12);
}
.news-card img {
    width: 100%;
    height: 94px;
    object-fit: cover;
}
.news-card__body {
    padding: 16px 18px 10px 18px;
}
.news-card__body h3 {
    font-size: 1.12rem;
    font-weight: 600;
    margin-bottom: 7px;
    color: #2771e7;
}
.news-card__body p {
    font-size: 0.98rem;
    margin-bottom: 7px;
    color: #232d39;
}
.news-card__date {
    font-size: 0.92rem;
    color: #a9b2c0;
    opacity: 0.77;
}

/* Reviews List */
.reviews-list {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}
.review-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 1px 7px 0 rgba(37,60,90,0.07);
    overflow: hidden;
    flex: 1 1 320px;
    min-width: 220px;
    max-width: 380px;
    transition: box-shadow 0.19s;
}
.review-card:hover {
    box-shadow: 0 7px 21px 0 rgba(50,120,220,0.11);
}
.review-card img {
    width: 100%;
    height: 96px;
    object-fit: cover;
}
.review-card__body {
    padding: 14px 16px 12px 16px;
}
.review-card__body h3 {
    font-size: 1.09rem;
    font-weight: 600;
    margin-bottom: 7px;
    color: #2771e7;
}
.review-card__body p {
    font-size: 0.97rem;
    color: #232d39;
}

/* Advice List */
.advice-list {
    display: flex;
    gap: 26px;
    flex-wrap: wrap;
}
.advice-card {
    background: #fff;
    border-radius: 13px;
    box-shadow: 0 1px 6px 0 rgba(37,60,90,0.06);
    overflow: hidden;
    flex: 1 1 240px;
    min-width: 180px;
    max-width: 320px;
    transition: box-shadow 0.19s;
}
.advice-card:hover {
    box-shadow: 0 5px 17px 0 rgba(39,113,231,0.08);
}
.advice-card img {
    width: 100%;
    height: 80px;
    object-fit: cover;
}
.advice-card__body {
    padding: 11px 14px 10px 14px;
}
.advice-card__body h3 {
    font-size: 1.03rem;
    font-weight: 600;
    margin-bottom: 7px;
    color: #31bfa8;
}
.advice-card__body p {
    font-size: 0.95rem;
    color: #232d39;
}

/* Analytics Block */
.analytics {
    display: flex;
    align-items: flex-start;
    background: #f3f7fe;
    border-radius: 20px;
    padding: 36px 30px 28px 30px;
    box-shadow: 0 2px 18px 0 rgba(39,113,231,0.05);
    margin-top: 14px;
    gap: 42px;
    flex-wrap: wrap;
}
.analytics__info {
    flex: 1 1 260px;
}
.analytics__info h2 {
    font-size: 1.14rem;
    font-weight: 700;
    margin-bottom: 18px;
    color: #2771e7;
}
.analytics__info ul {
    display: flex;
    flex-direction: column;
    gap: 11px;
}
.analytics__info li {
    display: flex;
    align-items: center;
    gap: 11px;
    font-size: 1rem;
}
.analytics__icon {
    display: inline-flex;
    align-items: center;
    margin-right: 4px;
}
.analytics__img img {
    width: 220px;
    max-width: 100%;
    border-radius: 13px;
}

/* FAQ Block */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 6px;
}
.faq-list details {
    background: #fff;
    border-radius: 9px;
    box-shadow: 0 1px 7px 0 rgba(37,60,90,0.05);
    padding: 13px 18px;
    font-size: 1rem;
}
.faq-list summary {
    cursor: pointer;
    font-weight: 500;
    color: #2771e7;
    outline: none;
    transition: color 0.16s;
}
.faq-list summary:hover {
    color: #42a4ff;
}

/* SVG icons base */
.icon-news, .icon-review, .icon-advice, .icon-faq {
    display: inline-block;
    vertical-align: middle;
    margin-right: 2px;
    line-height: 1;
}

/* --- Adaptive layout --- */
@media (max-width: 1100px) {
    .hero__content { flex-direction: column; align-items: flex-start; gap: 30px; }
    .analytics { flex-direction: column; gap: 22px; }
}
@media (max-width: 700px) {
    .hero { padding: 24px 0 16px 0; }
    .section, .analytics { padding: 0 10px; }
    .news-list, .reviews-list, .advice-list { gap: 16px; }
    .faq-list details { padding: 9px 11px; }
    .main { padding-top: 11px; }
}
@media (max-width: 550px) {
    .hero__info h1 { font-size: 1.21rem; }
    .section__header h2 { font-size: 1rem; }
    .analytics__img img { width: 98%; }
}
/* Новости — страница */
.news-list--page {
    flex-wrap: wrap;
    gap: 28px 24px;
    margin-bottom: 28px;
}
@media (max-width: 900px) {
    .news-list--page { gap: 18px 12px; }
}
.advice-list--page {
    gap: 28px 24px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}
@media (max-width: 900px) {
    .advice-list--page { gap: 18px 12px; }
}
.reviews-list--page {
    gap: 28px 24px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}
.reviews__note {
    margin: 38px 0 8px 0;
    font-size: 1.01rem;
    color: #6a7b90;
    line-height: 1.56;
    max-width: 690px;
}
.reviews__note a {
    color: inherit;
    text-decoration: underline dotted;
    opacity: 0.85;
    transition: opacity 0.18s;
}
.reviews__note a:hover {
    opacity: 1;
    text-decoration: underline solid;
}
@media (max-width: 900px) {
    .reviews-list--page { gap: 18px 12px; }
    .reviews__note { font-size: 0.97rem; }
}
