.csct-connections,
.csct-connections * {
    box-sizing: border-box;
}

.csct-connections {
    --csct-navy: #102733;
    --csct-green: #819a27;
    --csct-border: #dce2d1;
    position: relative;
    width: 100%;
    padding: 48px 70px;
    color: var(--csct-navy);
    background: #f7f8f3;
    border-top: 1px solid var(--csct-border);
    font-family: Helvetica, Arial, sans-serif;
}

.csct-connections__header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 26px;
}

.csct-connections__header > div:first-child {
    max-width: 720px;
}

.csct-connections__header h5 {
    margin: 12px 0 0;
}

.csct-connections__header h5::after {
    display: block;
    width: 48px;
    height: 3px;
    margin-top: 11px;
    background: linear-gradient(90deg, #718b25 0%, #a3b84b 100%);
    border-radius: 3px;
    content: "";
}

.csct-connections__introduction {
    max-width: 690px;
    margin: 18px 0 0 !important;
    color: #59666c;
    font-size: 17px;
    line-height: 1.65;
}

.csct-connections__controls {
    display: flex;
    flex-shrink: 0;
    gap: 8px;
}

.csct-connections__controls button {
    display: grid;
    width: 42px;
    height: 42px;
    padding: 0;
    place-items: center;
    color: var(--csct-navy);
    font-size: 28px;
    line-height: 1;
    background: #fff;
    border: 1px solid #cbd4bb;
    border-radius: 50%;
    cursor: pointer;
    transition: background 180ms ease, border-color 180ms ease;
}

.csct-connections__controls button:hover {
    background: #eef1e6;
    border-color: var(--csct-green);
}

.csct-connections__viewport {
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.csct-connections__viewport::-webkit-scrollbar {
    display: none;
}

.csct-connections__track {
    display: grid;
    grid-auto-columns: minmax(210px, calc((100% - 48px) / 4));
    grid-auto-flow: column;
    gap: 16px;
}

.csct-connection-card {
    display: flex;
    min-height: 180px;
    padding: 24px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 15px;
    text-align: center;
    background: #fff;
    border: 1px solid var(--csct-border);
    border-radius: 9px;
    box-shadow: 0 5px 16px rgba(16, 39, 51, 0.05);
}

.csct-connection-card a,
.csct-connection-card > div {
    display: flex;
    width: 100%;
    height: 90px;
    align-items: center;
    justify-content: center;
}

.csct-connection-card img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 82px;
    object-fit: contain;
    filter: grayscale(15%);
    transition: transform 220ms ease, filter 220ms ease;
}

.csct-connection-card:hover img {
    filter: none;
    transform: scale(1.04);
}

.csct-connection-card span {
    font-size: 13px;
    font-weight: 600;
}

.csct-connections-empty {
    display: flex;
    max-width: 620px;
    min-height: 150px;
    padding: 24px;
    align-items: center;
    gap: 22px;
    background: #fff;
    border: 1px dashed #b9c69d;
    border-radius: 10px;
}

.csct-connections-empty__mark {
    display: flex;
    min-width: 150px;
    min-height: 100px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #edf0e5, #f7f8f3);
    border-radius: 7px;
}

.csct-connections-empty__mark span {
    width: 30px;
    height: 30px;
    background: #dce4c8;
    border: 1px solid #bdca9f;
    border-radius: 5px;
}

.csct-connections-empty > div:last-child { display: flex; flex-direction: column; gap: 7px; }
.csct-connections-empty strong { font-size: 16px; line-height: 1.4; }
.csct-connections-empty > div:last-child span { color: #59666c; font-size: 13px; line-height: 1.45; }
.csct-connections-empty a { align-self: flex-start; color: #586f25; font-size: 14px; font-weight: 600; }

@media (max-width: 1024px) {
    .csct-connections { padding: 44px 30px; }
    .csct-connections__track { grid-auto-columns: minmax(210px, calc((100% - 32px) / 3)); }
}

@media (max-width: 700px) {
    .csct-connections { padding: 38px 20px; }
    .csct-connections__header { align-items: flex-start; }
    .csct-connections__introduction { font-size: 16px; }
    .csct-connections__track { grid-auto-columns: 82%; }
    .csct-connections-empty { align-items: stretch; flex-direction: column; }
    .csct-connections-empty__mark { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .csct-connection-card img { transition: none; }
    .csct-connection-card:hover img { transform: none; }
}
