
.th-instruments__title {
    margin-bottom: 12px;
}
.th-instruments__title--opensans {
    font-family: "Open Sans", sans-serif !important;
}
.th-instruments__title--praktika {
    font-family: inherit;
}
.th-instruments__intro {
    max-width: 760px;
    margin-bottom: 28px;
}
.th-instruments__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}
.th-instrument-card {
    appearance: none;
    border: 0;
    padding: 0;
    background: #fff;
    text-align: left;
    cursor: pointer;
    overflow: hidden;
    border-radius: 18px;
    box-shadow: 0 8px 26px rgba(0,0,0,.08);
    transition: transform .2s ease, box-shadow .2s ease;
}
.th-instrument-card:hover,
.th-instrument-card:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 12px 34px rgba(0,0,0,.12);
}
.th-instrument-card:focus-visible {
    outline: 3px solid currentColor;
    outline-offset: 3px;
}
.th-instrument-card__media {
    display: block;
    aspect-ratio: 1 / 1;
    background: #f2f2f2;
    overflow: hidden;
}
.th-instrument-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.th-instrument-card__name {
    display: block;
    padding: 18px 18px 6px;
    font-size: 20px;
    line-height: 1.2;
    font-weight: 700;
}
.th-instrument-card__text {
    display: block;
    padding: 0 18px 10px;
    font-size: 15px;
    line-height: 1.45;
    font-weight: 400;
}
.th-instrument-card__cta {
    display: block;
    padding: 0 18px 20px;
    font-size: 13px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: .04em;
}
.th-instrument-drawer {
    position: fixed;
    inset: 0;
    z-index: 99999;
    visibility: hidden;
    pointer-events: none;
}
.th-instrument-drawer.is-open {
    visibility: visible;
    pointer-events: auto;
}
.th-instrument-drawer__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.46);
    opacity: 0;
    transition: opacity .25s ease;
}
.th-instrument-drawer.is-open .th-instrument-drawer__backdrop {
    opacity: 1;
}
.th-instrument-drawer__panel {
    position: absolute;
    top: 0;
    right: 0;
    width: min(620px, 46vw);
    height: 100%;
    background: #fff;
    transform: translateX(100%);
    transition: transform .28s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: -12px 0 40px rgba(0,0,0,.16);
}
.th-instrument-drawer.is-open .th-instrument-drawer__panel {
    transform: translateX(0);
}
.th-instrument-drawer__header {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 24px 28px 18px;
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(0,0,0,.08);
}
.th-instrument-drawer__eyebrow {
    margin: 0 0 5px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
}
.th-instrument-drawer__title {
    margin: 0;
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.08;
}
.th-instrument-drawer__close {
    position: relative;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    appearance: none;
    border: 1px solid rgba(0,0,0,.14);
    border-radius: 50%;
    background: #fff;
    padding: 0;
    cursor: pointer;
}
.th-instrument-drawer__close span,
.th-instrument-drawer__close span::before {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    content: "";
}
.th-instrument-drawer__close span {
    transform: translate(-50%, -50%) rotate(45deg);
}
.th-instrument-drawer__close span::before {
    transform: translate(-50%, -50%) rotate(90deg);
}
.th-instrument-drawer__close:hover,
.th-instrument-drawer__close:focus-visible {
    background: rgba(0,0,0,.04);
}
.th-instrument-drawer__close:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}
.th-instrument-drawer__body {
    padding: 24px 28px 40px;
}
.th-instrument-drawer__body .alert-info.mb-4 {
    display: none;
}
body.th-instrument-drawer-open {
    overflow: hidden;
}

@media (max-width: 1024px) {
    .th-instruments__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .th-instrument-drawer__panel {
        width: min(680px, 72vw);
    }
}

@media (max-width: 700px) {
    .th-instruments__grid {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }
    .th-instrument-card {
        border-radius: 14px;
    }
    .th-instrument-card__name {
        padding: 14px 14px 4px;
        font-size: 18px;
    }
    .th-instrument-card__text {
        padding: 0 14px 9px;
        font-size: 14px;
    }
    .th-instrument-card__cta {
        padding: 0 14px 16px;
        font-size: 11px;
    }
    .th-instrument-drawer__panel {
        width: 100vw;
        height: 100dvh;
    }
    .th-instrument-drawer__header {
        padding: 18px 18px 14px;
    }
    .th-instrument-drawer__body {
        padding: 18px 18px 32px;
    }
}

@media (max-width: 420px) {
    .th-instruments__grid {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .th-instrument-card,
    .th-instrument-drawer__backdrop,
    .th-instrument-drawer__panel {
        transition: none;
    }
}
