body {
    margin-top: 20px;
}

.partners-container {
    max-width: 720px;
    margin: 0 auto 20px auto;
    background: rgb(28, 28, 39);
    padding: 40px 40px;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.partners-container h3 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 28px;
    color: rgb(243, 243, 243);
    letter-spacing: -0.02em;
}

.partners-container span {
    margin-bottom: 20px;
    font-size: 1.05rem;
    color: rgb(230, 230, 230);
    background: rgb(46 46 59);
    padding: 20px;
    border-radius: 6px;
    border: 1px solid grey;
    display: block;
}

.partners-container span a {
    color: orange;
    text-decoration: none;
}

.partner {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.partners-main {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: center;
    gap: 20px;
}

.partners-profile {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px 15px;
    border: 1px solid grey;
    border-radius: 6px;
    justify-content: center;
    color: white;
    align-items: center;
    text-align: center;
    max-width: max(100px, 40%);
    background: rgb(46 46 59);
}

.partners-profile img {
    max-height: 200px;
    max-width: 150px;
    border-radius: 6px;
    object-fit: cover;
}

.partners-profile h3, .partners-profile h4, .partners-profile p {
    margin: 0;
}

.partners-profile p {
    font-size: 13px;
}

.partners-profile h4 {
    color: orange;
    font-weight: 500;
}

.partners-sub {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    padding: 10px 5px;
    align-items: stretch;
    gap: 10px;
    flex-wrap: wrap;
}

.partners-sub h5, .partners-sub p {
    margin: 0;
}

.partners-sub > * {
    flex: 1;
}

@media (max-width: 500px) {
    .partners-profile {
        max-width: 100%;
    }
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
}

.partner {
    background: rgb(183 144 205);
    padding: 16px;
    border-radius: 6px;
    text-align: center;
}

.partner-value {
    font-size: 1.35rem;
    font-weight: 700;
    color: #111;
    display: block;
}

.partner-label {
    font-size: 0.85rem;
    color: #555;
    margin-top: 4px;
}