/* Approved DNS category strip, 2026-11-24. Scoped to this homepage section. */
.kd-task-categories.kd-task-dns{box-sizing:border-box;max-width:1400px;width:calc(100% - 40px);margin:45px auto;padding:0;border:0;border-radius:0;background:#fff;color:#192d3a}
.kd-task-dns .kd-task-categories__heading{display:flex;justify-content:space-between;align-items:center;gap:22px;margin:0 0 26px}
.kd-task-dns .kd-task-categories__heading h2{margin:0;color:inherit;font-size:30px;line-height:1.25;font-weight:700;letter-spacing:-.5px}
.kd-task-dns .kd-home-carousel__actions{display:flex;flex-direction:row-reverse;align-items:center;gap:24px;flex-shrink:0}
.kd-task-dns .kd-home-carousel__all{font-size:14px;line-height:20px;font-weight:400;color:#269dd8;white-space:nowrap;text-decoration:none}
.kd-task-dns .kd-home-carousel__all:hover{text-decoration:underline}
.kd-task-dns .kd-home-carousel__controls{display:flex;align-items:center;gap:8px}
.kd-task-dns .kd-home-carousel__controls[hidden]{display:none}
.kd-task-dns .kd-home-carousel__controls button{display:grid;place-items:center;box-sizing:border-box;width:40px;height:40px;min-height:0;padding:0;border:1px solid #e2eaf0;border-radius:50%;background:#fff;color:#192d3a;box-shadow:none;cursor:pointer}
.kd-task-dns .kd-home-carousel__controls button:disabled{opacity:.35;cursor:default}
.kd-task-dns .kd-home-carousel__controls button:hover:not(:disabled){color:#269dd8;border-color:#269dd8}
.kd-task-dns .kd-home-carousel__controls svg{width:18px;height:18px}
.kd-task-categories.kd-task-dns[data-kd-selection-carousel] .kd-task-categories__grid{--kd-dns-columns:7;--kd-dns-gap:20px;display:flex;grid-template-columns:none;gap:var(--kd-dns-gap);align-items:flex-start;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;scroll-snap-type:none;margin:0;padding:4px 0 8px}
.kd-task-categories.kd-task-dns[data-kd-selection-carousel] .kd-task-categories__grid::-webkit-scrollbar{display:none}
.kd-task-dns .kd-task-dns__item{box-sizing:border-box;flex:0 0 calc((100% - (var(--kd-dns-columns) - 1)*var(--kd-dns-gap))/var(--kd-dns-columns));min-width:0;display:flex;flex-direction:column;gap:13px;padding:0;margin:0;text-align:center;font-size:14px;line-height:20px;color:#192d3a;text-decoration:none;background:none;border:0;border-radius:0;box-shadow:none}
.kd-task-dns .kd-task-dns__photo{display:block;width:100%;height:112px}
.kd-task-dns .kd-task-dns__photo img{display:block;width:100%;height:100%;max-width:100%;object-fit:contain;object-position:center bottom;border:0;border-radius:0;background:transparent;transition:transform .2s ease}
.kd-task-dns .kd-task-dns__label{display:block;min-height:40px;font-weight:400;overflow-wrap:break-word}
.kd-task-dns .kd-task-dns__item:hover{color:#269dd8}
.kd-task-dns a:focus-visible,.kd-task-dns button:focus-visible{outline:2px solid #269dd8;outline-offset:2px}
@media(hover:hover){.kd-task-dns .kd-task-dns__item:hover img{transform:translateY(-3px)}}
@media(max-width:767px){
 .kd-task-categories.kd-task-dns{width:calc(100% - 32px);margin:36px auto}
 .kd-task-dns .kd-task-categories__heading{display:block;margin-bottom:22px}
 .kd-task-dns .kd-task-categories__heading h2{font-size:24px;line-height:30px;letter-spacing:-.4px}
 .kd-task-dns .kd-home-carousel__actions{margin-top:12px;justify-content:flex-end;gap:0}
 .kd-task-dns .kd-home-carousel__all{font-size:13px;line-height:20px}
 .kd-task-dns .kd-home-carousel__controls{display:none!important}
 .kd-task-categories.kd-task-dns[data-kd-selection-carousel] .kd-task-categories__grid{--kd-dns-columns:4;--kd-dns-gap:12px;margin-right:-16px;padding-right:16px}
 .kd-task-dns .kd-task-dns__item{font-size:12px;line-height:17px;gap:12px}
 .kd-task-dns .kd-task-dns__photo{height:76px}
 .kd-task-dns .kd-task-dns__label{min-height:51px}
}
@media(prefers-reduced-motion:reduce){.kd-task-dns .kd-task-dns__photo img{transition:none;transform:none!important}}

/* Enlarge only the category artwork on desktop. */
@media(min-width:768px){.kd-task-categories.kd-task-dns .kd-task-dns__photo{height:160px}}

/* Approved edge arrows; desktop only. Shared carousel handlers are unchanged. */
.kd-task-dns .kd-task-dns__lane{position:relative;min-width:0}
@media(min-width:768px){
 .kd-task-categories.kd-task-dns .kd-task-dns__photo img{object-position:center}
 .kd-task-categories.kd-task-dns .kd-task-dns__edge-controls{position:absolute;inset:0 -18px;display:block;overflow:hidden;pointer-events:none;z-index:2;margin:0;padding:0}
 .kd-task-categories.kd-task-dns .kd-task-dns__edge-controls[hidden]{display:none}
 .kd-task-categories.kd-task-dns .kd-task-dns__edge-controls button{position:absolute;top:84px;display:grid;place-items:center;box-sizing:border-box;width:48px;height:48px;min-height:0;padding:0;border:1px solid #e1edf5;border-radius:50%;background:#fff;color:#192d3a;box-shadow:0 4px 16px #192d3a20,0 1px 3px #192d3a20;opacity:0;pointer-events:none;transition:transform .38s cubic-bezier(.2,.75,.25,1),opacity .24s ease,background-color .2s ease,color .2s ease,box-shadow .2s ease}
 .kd-task-categories.kd-task-dns .kd-task-dns__edge-controls [data-kd-prev]{left:2px;transform:translate(-115%,-50%) scale(.88)}
 .kd-task-categories.kd-task-dns .kd-task-dns__edge-controls [data-kd-next]{right:2px;transform:translate(115%,-50%) scale(.88)}
 .kd-task-categories.kd-task-dns .kd-task-dns__edge-controls svg{width:22px;height:22px;stroke-width:1.8}
 .kd-task-dns .kd-task-dns__lane:hover .kd-task-dns__edge-controls button,.kd-task-dns .kd-task-dns__lane:has(button:focus-visible) .kd-task-dns__edge-controls button{opacity:1;pointer-events:auto;transform:translate(0,-50%) scale(1)}
 .kd-task-dns .kd-task-dns__lane:hover .kd-task-dns__edge-controls button:disabled,.kd-task-dns .kd-task-dns__lane:has(button:focus-visible) .kd-task-dns__edge-controls button:disabled{opacity:.25;pointer-events:none}
 .kd-task-categories.kd-task-dns .kd-task-dns__edge-controls button:hover:not(:disabled){color:#269dd8;border-color:#c5e6f8;background:#f0f9fe;box-shadow:0 5px 20px #192d3a20}
 .kd-task-categories.kd-task-dns .kd-task-dns__edge-controls button:active:not(:disabled){transform:translate(0,-50%) scale(.94)}
}
@media(hover:none) and (min-width:768px){.kd-task-categories.kd-task-dns .kd-task-dns__edge-controls button{opacity:1;pointer-events:auto;transform:translate(0,-50%) scale(1)}.kd-task-categories.kd-task-dns .kd-task-dns__edge-controls button:disabled{opacity:.25;pointer-events:none}}
@media(prefers-reduced-motion:reduce){.kd-task-categories.kd-task-dns .kd-task-dns__edge-controls button{transition:none}}

/* DNS brands reference: 48px borderless circles, 12px inset, fade and hover scale.
   The chevrons use the KOSMO DOM blue. Desktop category strip only. */
@media(min-width:768px){
 .kd-task-categories.kd-task-dns .kd-task-dns__lane .kd-task-dns__edge-controls{inset:0;overflow:visible}
 .kd-task-categories.kd-task-dns .kd-task-dns__lane .kd-task-dns__edge-controls button{width:48px;height:48px;border:0;background:#fff;color:#269dd8;box-shadow:0 4px 10px #0000001a;opacity:0;pointer-events:none;transform:translate(0,-50%);transition:transform .2s ease,color .2s ease,box-shadow .2s ease,opacity .3s ease}
 .kd-task-categories.kd-task-dns .kd-task-dns__lane .kd-task-dns__edge-controls [data-kd-prev]{left:12px}
 .kd-task-categories.kd-task-dns .kd-task-dns__lane .kd-task-dns__edge-controls [data-kd-next]{right:12px}
 .kd-task-categories.kd-task-dns .kd-task-dns__lane .kd-task-dns__edge-controls svg{width:16px;height:16px;stroke-width:2.4}
 .kd-task-categories.kd-task-dns .kd-task-dns__lane:hover .kd-task-dns__edge-controls button,.kd-task-categories.kd-task-dns .kd-task-dns__lane:has(button:focus-visible) .kd-task-dns__edge-controls button{opacity:1;pointer-events:auto;transform:translate(0,-50%)}
 .kd-task-categories.kd-task-dns .kd-task-dns__lane .kd-task-dns__edge-controls button:disabled{background:#eee;color:#8c8c8c;pointer-events:none}
 .kd-task-categories.kd-task-dns .kd-task-dns__lane .kd-task-dns__edge-controls button:hover:not(:disabled){background:#fff;color:#138ac4;box-shadow:0 4px 20px #0000001a;transform:translate(0,-50%) scale(1.1)}
 .kd-task-categories.kd-task-dns .kd-task-dns__lane .kd-task-dns__edge-controls button:active:not(:disabled){transform:translate(0,-50%) scale(1)}
}
@media(hover:none) and (min-width:768px){.kd-task-categories.kd-task-dns .kd-task-dns__lane .kd-task-dns__edge-controls button{opacity:1;pointer-events:auto;transform:translate(0,-50%)}.kd-task-categories.kd-task-dns .kd-task-dns__lane .kd-task-dns__edge-controls button:disabled{pointer-events:none}}
@media(prefers-reduced-motion:reduce){.kd-task-categories.kd-task-dns .kd-task-dns__lane .kd-task-dns__edge-controls button{transition:none}}

/* Disabled arrows retain the same appearance, with lower opacity. */
@media(min-width:768px){
 .kd-task-categories.kd-task-dns .kd-task-dns__lane .kd-task-dns__edge-controls button:disabled{background:#fff;color:#269dd8;box-shadow:0 4px 10px #0000001a}
 .kd-task-categories.kd-task-dns .kd-task-dns__lane:hover .kd-task-dns__edge-controls button:disabled,.kd-task-categories.kd-task-dns .kd-task-dns__lane:has(button:focus-visible) .kd-task-dns__edge-controls button:disabled{opacity:.32;pointer-events:none}
}
@media(hover:none) and (min-width:768px){.kd-task-categories.kd-task-dns .kd-task-dns__lane .kd-task-dns__edge-controls button:disabled{opacity:.32}}

/* Match neighbouring 1400px sections; remove accumulated empty label space. */
.kd-task-categories.kd-task-dns{width:100%;max-width:1400px;margin:32px auto 0}
.kd-task-categories.kd-task-dns .kd-task-dns__label{min-height:0}
.kd-task-categories.kd-task-dns[data-kd-selection-carousel] .kd-task-categories__grid{margin:0;padding:4px 0}
.kd-task-categories.kd-task-dns ~ .kd-vkstories-home{width:100%;max-width:1400px;margin-left:auto;margin-right:auto;margin-top:32px}
@media(max-width:767px){
 .kd-task-categories.kd-task-dns{width:100%;margin:24px auto 0}
 .kd-task-categories.kd-task-dns ~ .kd-vkstories-home{margin-top:24px}
}

/* Desktop category labels and breathing room. */
@media(min-width:960px){
 .kd-task-categories.kd-task-dns .kd-task-dns__item{font-size:15px;line-height:22px}
 .kd-task-categories.kd-task-dns{margin-top:48px}
 .kd-task-categories.kd-task-dns ~ .kd-vkstories-home{margin-top:44px}
}

/* Spread four compact categories to the mobile row edges. */
@media(max-width:767px){
 .kd-task-categories.kd-task-dns[data-kd-selection-carousel] .kd-task-categories__grid{--kd-dns-gap:calc((100% - 256px)/3);gap:var(--kd-dns-gap)}
 .kd-task-categories.kd-task-dns .kd-task-dns__item{flex:0 0 64px;text-align:center}
}

/* Larger mobile artwork with compact, even spacing and four visible categories. */
@media(max-width:767px){
 .kd-task-categories.kd-task-dns[data-kd-selection-carousel] .kd-task-categories__grid{--kd-dns-gap:8px;gap:8px}
 .kd-task-categories.kd-task-dns .kd-task-dns__item{flex:0 0 calc((100% - 24px)/4);gap:10px;text-align:center}
 .kd-task-categories.kd-task-dns .kd-task-dns__photo{height:100px}
 .kd-task-categories.kd-task-dns .kd-task-dns__photo img{object-position:center}
}

/* Midpoint between mobile v11 and v12: 88px artwork, averaged card width/gap. */
@media(max-width:767px){
 .kd-task-categories.kd-task-dns[data-kd-selection-carousel] .kd-task-categories__grid{--kd-dns-gap:calc((100% - 232px)/6);gap:var(--kd-dns-gap)}
 .kd-task-categories.kd-task-dns .kd-task-dns__item{flex:0 0 calc(12.5% + 29px);gap:11px}
 .kd-task-categories.kd-task-dns .kd-task-dns__photo{height:88px}
}

/* Desktop cards approved in the second category-count sketch. */
.kd-task-dns .kd-task-dns__desktop-label,
.kd-task-dns .kd-task-dns__summary {
    display: none;
}

@media (min-width: 768px) {
    .kd-task-categories.kd-task-dns[data-kd-selection-carousel] .kd-task-categories__grid {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        grid-auto-flow: row;
        grid-auto-columns: auto;
        gap: 12px;
        align-items: stretch;
        overflow: visible;
        padding: 4px 0;
    }
    .kd-task-categories.kd-task-dns .kd-task-dns__edge-controls {
        display: none;
    }
    .kd-task-categories.kd-task-dns .kd-task-dns__item {
        display: grid;
        grid-template-columns: 66px minmax(0, 1fr);
        grid-template-rows: 1fr auto;
        align-items: center;
        gap: 7px 10px;
        min-width: 0;
        min-height: 126px;
        padding: 10px 11px 9px;
        border: 1px solid #dfe7ef;
        border-radius: 13px;
        background: #fff;
        color: #14283b;
        text-align: left;
    }
    .kd-task-categories.kd-task-dns .kd-task-dns__item:hover {
        border-color: #76b9e0;
        color: #14283b;
    }
    .kd-task-categories.kd-task-dns .kd-task-dns__photo {
        display: grid;
        place-items: center;
        width: 66px;
        height: 65px;
    }
    .kd-task-categories.kd-task-dns .kd-task-dns__label {
        font-size: 14px;
        font-weight: 700;
        line-height: 17px;
        overflow-wrap: anywhere;
    }
    .kd-task-dns .kd-task-dns__short-label {
        display: none;
    }
    .kd-task-dns .kd-task-dns__desktop-label {
        display: inline;
    }
    .kd-task-dns .kd-task-dns__summary {
        display: flex;
        grid-column: 1 / -1;
        align-items: baseline;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 3px 6px;
        padding: 7px 2px 0;
        border-top: 1px solid #e0ebf3;
        font-size: 12px;
        line-height: 17px;
    }
    .kd-task-dns .kd-task-dns__count {
        color: #526678;
        white-space: nowrap;
    }
    .kd-task-dns .kd-task-dns__price {
        color: #18344f;
        font-size: 13px;
        font-weight: 700;
        white-space: nowrap;
    }
}

@media (min-width: 1180px) {
    .kd-task-categories.kd-task-dns[data-kd-selection-carousel] .kd-task-categories__grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

@media (min-width: 768px) and (max-width: 1320px) {
    .kd-task-categories.kd-task-dns .kd-task-dns__label {
        font-size: 13px;
    }
}

/* Match the dimensions and typography of the approved second sketch. */
@media (min-width: 768px) {
    .kd-task-categories.kd-task-dns[data-kd-selection-carousel] .kd-task-categories__grid {
        width: min(100%, calc(100vw - 82px), 1378px);
        grid-template-columns: repeat(3, minmax(0, 1fr));
        padding: 0;
        margin: 0 auto;
        font-family: Arial, sans-serif;
    }
    .kd-task-categories.kd-task-dns .kd-task-dns__item,
    .kd-task-categories.kd-task-dns .kd-task-dns__item span {
        font-family: Arial, sans-serif !important;
    }
    .kd-task-categories.kd-task-dns .kd-task-dns__photo img {
        width: 66px;
        height: 65px;
        max-height: 65px;
        object-fit: contain;
        object-position: center;
    }
    .kd-task-dns .kd-task-dns__desktop-label {
        display: block;
    }
    .kd-task-dns .kd-task-dns__summary {
        align-items: center;
        gap: 6px;
    }
    .kd-task-dns .kd-task-dns__count {
        line-height: 16px;
    }
    .kd-task-dns .kd-task-dns__price {
        line-height: 17px;
    }
}

@media (min-width: 891px) {
    .kd-task-categories.kd-task-dns[data-kd-selection-carousel] .kd-task-categories__grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 1101px) {
    .kd-task-categories.kd-task-dns[data-kd-selection-carousel] .kd-task-categories__grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

@media (min-width: 768px) {
    .kd-task-categories.kd-task-dns .kd-task-dns__item {
        --kd-category-photo-width: 78px;
        grid-template-columns: var(--kd-category-photo-width) minmax(0, 1fr);
        grid-template-rows: minmax(78px, 1fr) auto;
        min-height: 132px;
    }
    .kd-task-categories.kd-task-dns .kd-task-dns__photo,
    .kd-task-categories.kd-task-dns .kd-task-dns__photo img {
        width: var(--kd-category-photo-width);
        height: 78px;
        max-height: 78px;
    }
}

@media (min-width: 768px) and (max-width: 1100px) {
    .kd-task-categories.kd-task-dns .kd-task-dns__item {
        --kd-category-photo-width: 74px;
    }
}

@media (min-width: 768px) {
    .kd-task-categories.kd-task-dns[data-kd-selection-carousel] .kd-task-categories__grid {
        width: 100%;
    }
}

@media (min-width: 768px) {
    .kd-task-categories.kd-task-dns .kd-task-dns__item {
        --kd-category-photo-width: 92px;
        grid-template-rows: minmax(92px, 1fr) auto;
        min-height: 146px;
    }
    .kd-task-categories.kd-task-dns .kd-task-dns__photo,
    .kd-task-categories.kd-task-dns .kd-task-dns__photo img {
        height: 92px;
        max-height: 92px;
    }
}

@media (min-width: 768px) and (max-width: 1320px) {
    .kd-task-categories.kd-task-dns .kd-task-dns__item {
        --kd-category-photo-width: 84px;
    }
}

@media (min-width: 768px) {
    .kd-home-page .kd-home-perks .kd-home-perks__icon {
        box-sizing: border-box;
        padding: 4px;
        border: 1px solid #4a9bd4;
        border-radius: 6px;
        background: #fff;
    }
    .kd-task-categories.kd-task-dns .kd-task-dns__item {
        --kd-category-photo-width: 80px;
        grid-template-rows: minmax(80px, 1fr) auto;
        min-height: 134px;
    }
    .kd-task-categories.kd-task-dns .kd-task-dns__photo,
    .kd-task-categories.kd-task-dns .kd-task-dns__photo img {
        height: 80px;
        max-height: 80px;
    }
}

.kd-task-categories .kd-task-dns__title {
    display: none;
}

@media (min-width: 768px) {
    .kd-home-page .kd-task-categories .kd-task-dns__title {
        display: block;
        margin: 0 0 30px;
        color: #192d3a;
        font-size: 32px;
        line-height: 1.25;
        font-weight: 700;
        letter-spacing: -0.6px;
    }
}

@media (min-width: 960px) and (max-width: 1199px) {
    .kd-home-page .kd-task-categories .kd-task-dns__title {
        font-size: 28px;
    }
}

@media (min-width: 768px) and (max-width: 959px) {
    .kd-home-page .kd-task-categories .kd-task-dns__title {
        margin-bottom: 18px;
        font-size: 24px;
        line-height: 30px;
        letter-spacing: -0.45px;
    }
}
