/* v0.18: Shared instructor component from approved product-card prototype. */
.nk-instructors .instructor-carousel.nk-carousel{display:flex!important;gap:22px!important;padding:85px 8px 24px!important;align-items:stretch!important;overflow-x:auto!important;overflow-y:hidden!important;scroll-snap-type:x mandatory!important;scroll-padding-inline:8px;}
.nk-instructors .nk-carousel>.nk-coach{flex:0 0 min(350px,86vw)!important;max-width:min(350px,86vw)!important;min-width:0!important;scroll-snap-align:start;}
.nk-instructors .instructor-card.nk-coach{box-sizing:border-box;position:relative;display:flex!important;flex-direction:column!important;align-items:stretch!important;overflow:visible!important;margin:0!important;min-height:475px!important;padding:104px 23px 24px!important;border-radius:22px!important;border:1px solid #dce8e2!important;background:#fff!important;box-shadow:0 12px 32px #105b4910!important;}
.nk-coach .nk-avatar{position:absolute!important;z-index:2;top:-74px!important;left:50%!important;transform:translateX(-50%)!important;width:158px!important;height:158px!important;overflow:hidden!important;margin:0!important;padding:7px!important;border-radius:50%!important;background:#fff!important;box-shadow:0 8px 24px #184d3920!important;border:1px solid #dce8e2!important;box-sizing:border-box;}
.nk-coach .nk-avatar img{display:block;width:100%!important;height:100%!important;border-radius:50%;object-fit:cover!important;object-position:center 20%;}
.nk-coach .nk-card-content{display:flex;flex-direction:column;align-items:center;text-align:center;min-width:0;flex:1;gap:0;}
.nk-coach .nk-card-content h3{margin:0 0 9px!important;font-size:1.35rem!important;line-height:1.2!important;letter-spacing:-.02em;color:#1c302c;}
.nk-sport{display:inline-flex!important;max-width:100%;padding:7px 13px;border-radius:50px;background:#dff1e9;color:#18695e;font-size:13px;font-weight:750;line-height:1.2;}
.nk-coach .nk-experience{margin:15px 0!important;color:#285d52;font-size:13px;font-weight:750;line-height:1.5;}
.nk-coach .nk-summary{margin:0 0 15px!important;color:#415b53;font-size:.92rem;line-height:1.55;}
.nk-coach .nk-points{align-self:stretch;text-align:left;background:#f2f9f5;padding:13px 15px;border-radius:13px;margin:0 0 20px;}
.nk-coach .nk-points strong{font-size:.87rem;color:#1e4f45;}
.nk-coach .nk-points ul{margin:7px 0 0;padding-left:17px;font-size:.84rem;line-height:1.55;color:#466058;}
.nk-coach .nk-card-actions{display:flex;flex-direction:column;gap:10px;width:100%;margin-top:auto;}
.nk-coach .nk-card-actions button{width:100%;min-height:40px;padding:8px 10px;border-radius:11px;border:1px solid #d0e7dc;background:#f5fbf7;color:#10675c;font-weight:750;font-size:.89rem;cursor:pointer;}
.nk-coach .nk-card-actions .nk-book{background:#08796f;border-color:#08796f;color:white;}
.nk-coach .nk-card-actions button:hover{filter:brightness(.95)}
.nk-instructors .nk-filters{display:flex;flex-wrap:wrap;gap:9px;margin:15px 0 0;}
.nk-instructors .nk-filter{border:1px solid #d5e7df;background:white;border-radius:18px;padding:9px 16px;cursor:pointer;font:inherit;color:#2d655b;}
.nk-instructors .nk-filter[aria-pressed="true"] {
    background: #08796f;
    color: #fff;
    border-color: #08796f;
    font-weight: 700;
}

.nk-instructors .nk-filter[aria-pressed="false"] {
    background: #fff;
    color: #2d655b;
    border-color: #d5e7df;
}
/* Dialog: two balanced columns, image never clipped, sticky heading and scroll area */
.nk-profile.booking-dialog{width:min(980px,calc(100vw - 32px))!important;max-width:980px!important;height:min(830px,calc(100dvh - 42px))!important;max-height:calc(100dvh - 42px)!important;border:0;border-radius:24px;padding:0!important;overflow:hidden!important;background:#fff;box-shadow:0 22px 65px #0e2d2766;}
.nk-profile::backdrop{background:#0b211dc2;backdrop-filter:blur(4px);}
.nk-profile .nk-modal-head{position:relative;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:20px 30px;background:#fff;border-bottom:1px solid #dce9e3;}
.nk-profile .nk-modal-name{font-weight:800;font-size:clamp(1.3rem,2.1vw,1.9rem);line-height:1.15;letter-spacing:-.03em;color:#1c302c;}
.nk-profile .nk-close{position:static!important;flex:0 0 auto;}
.nk-profile .nk-modal-scroll{overflow:auto;overscroll-behavior:contain;height:calc(100% - 78px);padding:24px 30px 32px;scrollbar-color:#9ebfb3 #f4f9f6;scrollbar-width:thin;}
.nk-profile .nk-modal-intro{display:grid;grid-template-columns:minmax(0,1.04fr) minmax(0,.96fr);gap:24px;align-items:start;background:#eef7f3;border:1px solid #d8e9e1;border-radius:20px;padding:20px;}
.nk-profile .nk-gallery{display:grid;gap:12px;min-width:0;}
.nk-profile .nk-featured{position:relative;border:0;display:grid;place-items:center;min-height:0;width:100%;height:345px;padding:0;background:#deede8;border-radius:16px;cursor:zoom-in;overflow:hidden;}
.nk-profile .nk-featured img{display:block;width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain;object-position:center;}
.nk-profile .nk-zoom{position:absolute;bottom:10px;right:10px;border-radius:8px;padding:6px 10px;background:#153e37de;color:white;font-size:12px;font-weight:750;}
.nk-profile .nk-thumbnails{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;}
.nk-profile .nk-thumb{border:2px solid #d6e8df;border-radius:11px;padding:3px;cursor:pointer;background:white;min-width:0;}
.nk-profile .nk-thumb[aria-pressed="true"]{border-color:#08796f;}
.nk-profile .nk-thumb img{display:block;width:100%;height:76px;object-fit:cover;object-position:center 25%;border-radius:7px;}
.nk-profile .nk-summary-pane{display:flex;flex-direction:column;gap:16px;min-width:0;}
.nk-profile .nk-summary-pane>.nk-sport{align-self:start;}
.nk-profile .nk-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
.nk-profile .nk-stats>div{display:flex;flex-direction:column;gap:8px;background:#fff;border:1px solid #dce9e3;border-radius:14px;padding:14px;min-width:0;}
.nk-profile .nk-stats small{font-size:12px;color:#57746a;}
.nk-profile .nk-stats strong{font-size:15px;line-height:1.4;color:#235d51;overflow-wrap:anywhere;}
.nk-profile .nk-modal-lead{margin:0;padding:16px 18px;background:#fff;border-left:4px solid #68aa93;border-radius:12px;color:#264139;line-height:1.65;font-size:.94rem;}
.nk-profile .nk-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:20px 0;}
.nk-profile .nk-facts>div{border:1px solid #dce9e3;border-radius:15px;padding:18px;background:#f3faf6;}
.nk-profile .nk-facts>div:nth-child(2){background:#f8fafb;}
.nk-profile .nk-facts strong{display:block;margin-bottom:12px;color:#1d6b5b;font-size:.97rem;}
.nk-profile .nk-facts ul{margin:0;padding-left:18px;line-height:1.6;color:#415d54;}
.nk-profile .nk-biography{margin:14px 0 0;color:#43594f;line-height:1.75;}
.nk-profile .nk-modal-book{margin-top:22px;}
/* Full-screen gallery: source loaded only on click; image always fits available screen */
.nk-lightbox{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;padding:0;margin:0;border:0;background:#0d1718f5;color:#fff;overflow:hidden;}
.nk-lightbox::backdrop{background:#070f10eb;}
.nk-lightbox .nk-lightbox-top{height:60px;display:flex;align-items:center;justify-content:space-between;padding:8px 22px;color:#e3f0e9;}
.nk-lightbox button{cursor:pointer;color:#fff;background:#ffffff25;border:1px solid #ffffff3b;border-radius:12px;min-width:42px;min-height:42px;font-size:24px;}
.nk-lightbox .nk-lightbox-stage{display:grid;grid-template-columns:52px minmax(0,1fr) 52px;align-items:center;justify-items:center;gap:12px;height:calc(100dvh - 80px);padding:10px 24px 30px;box-sizing:border-box;}
.nk-lightbox .nk-lightbox-stage img{width:auto;height:auto;max-width:100%;max-height:100%;object-fit:contain;min-width:0;min-height:0;}
.nk-instructors .nk-carousel > .nk-coach[hidden] {display: none !important;}
/* Сертификат на главной */
.home-gift-art {
    display: flex !important;
    align-items: center;
    justify-content: center;
    min-height: 0 !important;
}

.home-gift-art img {
    display: block;
    width: auto !important;
    height: auto !important;
    min-height: 0 !important;
    max-width: 100% !important;
    max-height: 260px !important;
    object-fit: contain !important;
}
@media(max-width:740px){.nk-profile .nk-modal-intro{grid-template-columns:1fr;}.nk-profile .nk-featured{height:320px}.nk-profile .nk-modal-head{padding:16px 20px}.nk-profile .nk-modal-scroll{padding:16px 18px;height:calc(100% - 68px)}.nk-lightbox .nk-lightbox-stage{grid-template-columns:36px minmax(0,1fr) 36px;gap:5px;padding:8px 6px 26px}.nk-lightbox button{min-width:34px;min-height:36px}.nk-profile .nk-facts{grid-template-columns:1fr}}
@media(max-width:390px){.nk-profile.booking-dialog{width:calc(100vw - 12px)!important}.nk-profile .nk-stats{grid-template-columns:1fr}.nk-profile .nk-featured{height:270px}.nk-instructors .nk-carousel>.nk-coach{flex-basis:86vw!important;max-width:86vw!important}}
