.am-home {
    margin: 0;
    overflow-x: hidden;
}

.am-block {
    padding: 20px 0;
}

.am-services {
    background: #f4f8fc;
    border-radius: 20px;
    margin: 12px 24px;
    padding: 27px 0 35px;
}

.am-services-grid {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 13px;
}

.am-service-card {
    min-height: 105px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 17px 15px;
    border: 1px solid #e8edf4;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 3px 12px rgba(9,39,84,.025);
}

.am-service-icon {
    font-size: 29px;
    flex-shrink: 0;
}

.am-service-card div {
    flex: 1;
    min-width: 0;
}

.am-service-card h3 {
    font-size: 14px;
    font-weight: 850;
    color: #092754;
    margin: 0 0 6px;
}

.am-service-card p {
    margin: 0;
    font-size: 11px;
    line-height: 1.8;
    color: #73839a;
}

.am-service-card a {
    display: grid;
    place-items: center;
    width: 29px;
    height: 29px;
    border: 1px solid #dce5ef;
    border-radius: 50%;
    text-decoration: none;
    color: #092754;
    flex-shrink: 0;
}

.am-about-panel {
    position: relative;
    overflow: hidden;
    min-height: 220px;
    padding: 34px 38px;
    color: #fff;
    border-radius: 15px;
    background:
        linear-gradient(100deg,rgba(5,25,51,.75),rgba(7,45,94,.95)),
        linear-gradient(140deg,#537da1,#092754);
}

.am-about-panel::before {
    content: "";
    position: absolute;
    width: 70%;
    height: 170px;
    bottom: -80px;
    left: -8%;
    background: rgba(164,198,221,.13);
    border-radius: 50% 50% 0 0;
    transform: rotate(-10deg);
}

.am-about-copy,
.am-about-features {
    position: relative;
    z-index: 1;
}

.am-about-copy h2 {
    font-size: 26px;
    margin: 0 0 10px;
    font-weight: 900;
}

.am-about-copy p {
    font-size: 13px;
    line-height: 2;
    max-width: 800px;
    margin: 0;
    color: #e5eefb;
}

.am-about-features {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 16px;
    margin-top: 26px;
}

.am-about-features div {
    display: grid;
    grid-template-columns: 34px 1fr;
    column-gap: 10px;
    align-items: center;
}

.am-about-features span {
    grid-row: span 2;
    font-size: 28px;
    color: #fff;
}

.am-about-features strong {
    font-size: 14px;
}

.am-about-features small {
    font-size: 11px;
    color: #d8e6f5;
}

.am-articles {
    padding: 36px 0 24px;
}

.am-articles-grid {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 16px;
}

.am-article-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid #e6ebf2;
    border-radius: 10px;
}

.am-article-image {
    height: 155px;
    overflow: hidden;
}

.am-article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.am-article-body {
    padding: 14px 16px 18px;
}

.am-article-body span {
    display: inline-block;
    color: #174780;
    background: #edf4fb;
    font-size: 10px;
    border-radius: 5px;
    padding: 5px 9px;
}

.am-article-body h3 {
    font-size: 14px;
    line-height: 1.9;
    min-height: 52px;
    margin: 9px 0;
    font-weight: 800;
    color: #0b2851;
}

.am-article-body small {
    color: #8a97a8;
    font-size: 10px;
}

.am-consultation {
    padding: 12px 0 34px;
}

.am-consultation-panel {
    display: flex;
    align-items: center;
    gap: 30px;
    min-height: 120px;
    border-radius: 17px;
    padding: 20px 30px;
    background: #eff5fa;
    overflow: hidden;
}

.am-consultation-art {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    align-self: stretch;
    width: 23%;
    border-radius: 12px;
    background: linear-gradient(120deg,#d1e5f3,#fff);
    color: #467baa;
    font-size: 44px;
}

.am-consultation-copy {
    flex: 1;
}

.am-consultation-copy h2 {
    font-size: 19px;
    font-weight: 900;
    margin: 0 0 10px;
    color: #092754;
}

.am-consultation-copy p {
    font-size: 12px;
    color: #64748b;
    margin: 0;
}

.am-consultation-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 23px;
    border-radius: 9px;
    background: #092754;
    color: white;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.am-footer {
    background: #061d38;
    color: #fff;
    padding: 43px 0 17px;
}

.am-footer-grid {
    display: grid;
    grid-template-columns: 1.7fr 1fr 1fr 1.15fr;
    gap: 38px;
}

.am-footer-brand img {
    max-width: 190px;
    max-height: 70px;
    object-fit: contain;
    background: white;
    padding: 6px;
    border-radius: 6px;
}

.am-footer-brand p,
.am-footer-grid > div > p {
    color: #c4d0de;
    line-height: 2;
    font-size: 12px;
    max-width: 340px;
}

.am-footer-grid h3 {
    font-size: 14px;
    margin: 0 0 18px;
}

.am-footer-grid a {
    display: block;
    margin-bottom: 11px;
    color: #cbd7e5;
    font-size: 12px;
    text-decoration: none;
}

.am-footer-grid a:hover {
    color: #fff;
}

.am-footer-bottom {
    border-top: 1px solid rgba(255,255,255,.13);
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 27px;
    padding-top: 17px;
    color: #9bafc7;
    font-size: 11px;
}

@media(max-width:1050px) {
    .am-services-grid,
    .am-articles-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }

    .am-footer-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }
}

@media(max-width:650px) {
    .am-services {
        margin: 10px;
    }

    .am-services-grid,
    .am-articles-grid,
    .am-about-features,
    .am-footer-grid {
        grid-template-columns: 1fr;
    }

    .am-about-panel {
        padding: 26px 20px;
    }

    .am-consultation-panel {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        padding: 22px;
    }

    .am-consultation-art {
        display: none;
    }

    .am-consultation-copy h2 {
        font-size: 17px;
    }

    .am-footer-bottom {
        flex-direction: column;
    }
}

/* Successful cases */
.am-cases-section {
    padding: 65px 0 55px;
    background: #fff;
}

.am-cases-title {
    text-align: center;
    color: #263d4c;
    font-size: 31px;
    font-weight: 900;
    margin: 0 0 35px;
}

.am-cases-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.am-case-card {
    border: 1px solid #e1e7ed;
    border-radius: 14px;
    padding: 12px;
    background: #fff;
    box-shadow: 0 10px 25px rgba(16, 40, 70, .055);
    min-width: 0;
}

.am-case-image {
    height: 195px;
    border: 1px solid #edf0f3;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background: #fafbfc;
}

.am-case-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.am-case-placeholder {
    color: #8ca0b5;
    font-weight: 800;
}

.am-case-name {
    margin-top: 10px;
    border: 1px solid #e1e7ed;
    background: #f7f9fb;
    border-radius: 8px;
    padding: 12px 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.am-case-name span {
    font-size: 23px;
    flex-shrink: 0;
}

.am-case-name strong {
    font-size: 13px;
    color: #263d4c;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.am-case-details {
    margin-top: 12px;
}

.am-case-details summary {
    text-align: center;
    color: #c28b18;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    list-style-position: inside;
    padding: 8px;
}

.am-case-details-body {
    padding: 12px;
    background: #f8fafc;
    border-radius: 8px;
    color: #42566c;
    font-size: 12px;
    line-height: 2;
}

.am-cases-all {
    text-align: center;
    margin-top: 35px;
}

.am-cases-all a {
    display: inline-block;
    padding: 13px 38px;
    border: 1px solid #c28b18;
    border-radius: 9px;
    color: #c28b18;
    text-decoration: none;
    font-weight: 800;
    font-size: 13px;
}

@media (max-width: 800px) {
    .am-cases-grid {
        grid-template-columns: 1fr;
    }

    .am-cases-section {
        padding: 40px 0;
    }
}

/* Dynamic article cards */
.am-article-card-link {
    display: block;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.am-article-card-link:hover h3 {
    color: #245c9d;
}

.am-article-no-image {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    background: #edf3f8;
    color: #8197ad;
    font-size: 14px;
    font-weight: 800;
}

.am-articles-more {
    color: #174b87;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}
