.dt-partners-page,
.dt-partners-page * {
    box-sizing: border-box;
}

.dt-partners-page {
    width: min(920px, calc(100% - 26px));
    margin: 0 auto 28px;
    color: #dce8f7;
    font-family: Arial, Helvetica, sans-serif;
}

.dt-exchange-panel {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(31, 72, 113, .78);
    border-radius: 18px; /* półłuki zaokrąglone także u góry */
    background: linear-gradient(180deg, #142033 0%, #0d1727 100%);
    box-shadow: 0 16px 38px rgba(0, 0, 0, .28), 0 0 0 1px rgba(67, 151, 255, .04) inset;
}

.dt-exchange-panel:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    border-radius: 18px 18px 0 0;
    background: linear-gradient(90deg, #ffe934, #71eaff, #ff4b4b, #ffe934);
    opacity: .95;
}

.dt-exchange-panel__title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 54px;
    padding: 12px 18px 11px;
    border-bottom: 1px solid rgba(50, 88, 130, .42);
    background: linear-gradient(180deg, rgba(35, 51, 74, .95), rgba(24, 38, 59, .9));
    color: #ffffff;
    font-size: 21px;
    font-weight: 900;
    letter-spacing: 1px;
    line-height: 1;
    text-align: center;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(255, 245, 178, .7), 0 2px 2px rgba(0, 0, 0, .65);
}

.dt-exchange-icon {
    display: inline-flex;
    width: 18px;
    height: 18px;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    background: linear-gradient(135deg, #7cd7ff, #327cff);
    color: #ffffff;
    font-size: 14px;
    line-height: 1;
    box-shadow: 0 0 12px rgba(69, 154, 255, .9);
}

.dt-exchange-panel__body {
    padding: 22px 12px 0;
}

.dt-exchange-desc {
    margin: 0 auto 20px;
    color: #d5dfed;
    font-size: 17px;
    line-height: 1.45;
    text-align: center;
}

.dt-logo-box {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 151px;
    margin: 0 0 17px;
    padding: 24px 18px;
    border: 1px solid rgba(33, 72, 114, .8);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(9, 18, 31, .97), rgba(5, 13, 23, .97));
    box-shadow: 0 0 0 1px rgba(95, 184, 255, .03) inset;
}

.dt-logo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    text-decoration: none;
}

.dt-logo-link img {
    display: block;
    width: auto;
    max-width: min(520px, 94%);
    max-height: 94px;
    border: 0;
    object-fit: contain;
    filter: drop-shadow(0 0 16px rgba(82, 231, 255, .22));
}

.dt-html-box {
    margin-top: 0;
    padding: 20px 20px 19px;
    border: 1px solid rgba(31, 68, 109, .70);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(9, 18, 31, .92), rgba(5, 13, 23, .97));
    box-shadow: inset 0 0 0 1px rgba(95, 184, 255, .025);
}

.dt-html-box h2 {
    margin: 0 0 15px;
    color: #ffe36e;
    font-size: 19px;
    font-weight: 900;
    letter-spacing: 1.7px;
    line-height: 1.1;
    text-align: center;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(255, 211, 64, .55);
}

.dt-html-code {
    display: block;
    width: calc(100% - 8px);
    min-height: 120px;
    margin: 0 auto;
    padding: 12px 13px;
    border: 1px solid rgba(38, 91, 139, .72);
    border-radius: 12px;
    background: #02090e;
    color: #9beeff;
    font: 600 12px/1.55 Consolas, Monaco, 'Courier New', monospace;
    outline: none;
    resize: vertical;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .018);
}

.dt-html-code:focus {
    border-color: rgba(98, 203, 255, .70);
    box-shadow: 0 0 0 2px rgba(41, 151, 255, .10);
}

.dt-copy-html {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 144px;
    min-height: 46px;
    margin: 18px auto 0;
    padding: 0 20px;
    border: 1px solid rgba(49, 86, 132, .95);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(20, 34, 54, .96), rgba(12, 24, 39, .96));
    color: #f0f5ff;
    cursor: pointer;
    font-size: 16px;
    font-weight: 900;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .7);
    transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.dt-copy-html:hover,
.dt-copy-html:focus {
    transform: translateY(-1px);
    border-color: rgba(89, 179, 255, .95);
    box-shadow: 0 0 18px rgba(67, 170, 255, .14);
    outline: none;
}

.dt-partners-box {
    margin-top: 18px;
    padding: 22px;
    border: 1px solid rgba(31, 72, 113, .78);
    border-radius: 18px;
    background: linear-gradient(180deg, #121f31, #091421);
    box-shadow: 0 12px 34px rgba(0, 0, 0, .22);
}

.dt-partners-box__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 54px;
    margin: -22px -22px 20px;
    padding: 0 28px;
    border-bottom: 1px solid rgba(54, 103, 154, .48);
    border-radius: 18px 18px 0 0;
    background:
        radial-gradient(circle at 18% 0%, rgba(79, 170, 255, .22), transparent 34%),
        linear-gradient(180deg, rgba(30, 50, 78, .98), rgba(15, 28, 47, .98));
    box-shadow:
        inset 0 1px 0 rgba(107, 190, 255, .22),
        inset 0 -1px 0 rgba(0, 8, 18, .72);
}

.dt-partners-box__head h2 {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    color: #ffffff;
    font-size: 19px;
    font-weight: 900;
    letter-spacing: 1px;
    line-height: 1;
    text-transform: uppercase;
    text-shadow:
        0 0 10px rgba(115, 201, 255, .55),
        0 2px 2px rgba(0, 0, 0, .75);
}

.dt-partners-box__head h2:before {
    content: "";
    display: inline-block;
    width: 17px;
    height: 17px;
    border-radius: 5px;
    background:
        radial-gradient(circle at 35% 28%, #d8f7ff 0%, #69c9ff 30%, #2077d8 68%, #0b2b57 100%);
    box-shadow:
        0 0 12px rgba(75, 168, 255, .92),
        inset 0 1px 0 rgba(255, 255, 255, .50);
    transform: rotate(-8deg);
}

.dt-partners-box__head p {
    margin: 0;
    color: #c5d8ee;
    font-size: 13px;
    line-height: 1.25;
    text-align: right;
    text-shadow: 0 1px 1px rgba(0, 0, 0, .65);
}

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

.dt-partner-item {
    position: relative;
    display: flex;
    min-height: 210px; /* ramka zmniejszona, logo zostaje tej samej wielkości */
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 10px 14px;
    border: 1px solid rgba(26, 101, 178, .6);
    border-radius: 18px;
    background: radial-gradient(circle at 50% 0%, rgba(36, 117, 230, .22), transparent 42%), linear-gradient(180deg, rgba(16, 35, 58, .92), rgba(5, 15, 27, .95));
    color: #ffffff;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .25), 0 0 0 1px rgba(118, 192, 255, .04) inset;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.dt-partner-item:hover,
.dt-partner-item:focus {
    transform: translateY(-2px);
    border-color: rgba(36, 158, 255, .9);
    box-shadow: 0 14px 30px rgba(0, 0, 0, .35), 0 0 22px rgba(22, 153, 255, .12);
    outline: none;
}

.dt-partner-item__shine {
    position: absolute;
    inset: -80px auto auto -120px;
    width: 140px;
    height: 260px;
    background: linear-gradient(110deg, transparent, rgba(255, 255, 255, .13), transparent);
    transform: rotate(18deg);
    transition: left .5s ease;
}

.dt-partner-item:hover .dt-partner-item__shine,
.dt-partner-item:focus .dt-partner-item__shine {
    left: 120%;
}

.dt-partner-item img {
    display: block;
    width: auto;
    height: 180px; /* logo Szybkie Premki jeszcze bardziej powiększone */
    max-width: 99%;
    max-height: 220px;
    border: 0;
    object-fit: contain;
    filter: drop-shadow(0 7px 16px rgba(0, 0, 0, .28));
}

@media (max-width: 700px) {
    .dt-partners-page {
        width: calc(100% - 18px);
    }

    .dt-exchange-panel__title {
        font-size: 18px;
    }

    .dt-exchange-desc {
        font-size: 14px;
    }

    .dt-logo-box {
        min-height: 124px;
        padding: 18px 12px;
    }

    .dt-logo-link img {
        max-height: 78px;
    }

    .dt-html-code {
        width: calc(100% - 4px);
        min-height: 136px;
        padding: 11px 12px;
        font-size: 11px;
        line-height: 1.5;
    }

    .dt-html-box {
        padding: 17px 14px 16px;
    }

    .dt-partners-box {
        padding: 18px 14px;
    }

    .dt-partners-box__head {
        display: block;
        min-height: 0;
        margin: -18px -14px 18px;
        padding: 14px 16px 13px;
    }

    .dt-partners-box__head h2 {
        font-size: 17px;
    }

    .dt-partners-box__head p {
        margin-top: 8px;
        text-align: left;
        font-size: 12px;
    }

    .dt-partner-grid {
        grid-template-columns: 1fr;
    }

    .dt-partner-item {
        min-height: 185px;
    }

    .dt-partner-item img {
        height: 145px;
        max-height: 180px;
    }
}
