/* Catalogue / checkout 2.4: content-driven rows, scoped to purchasing UI. */
html body .tutor-course-card .tutor-card-footer{display:flex!important;flex-direction:column!important;gap:14px!important;grid-template-rows:none!important;justify-content:flex-end!important}
html body .tutor-course-card .tutor-card-footer :is(.list-item-price,.tutor-course-price){min-height:33px!important}
html body .tutor-course-card .tutor-card-body>.tutor-meta:last-child{margin-top:auto!important;padding-top:20px!important;padding-bottom:0!important}
html body .tutor-course-card .kacc-description{min-height:0!important;max-height:none!important;-webkit-line-clamp:6!important;line-height:1.6!important}
html body .tutor-course-card .kacc-owned-badge{position:absolute;left:14px;top:14px;z-index:4;background:#176f4b!important;color:#fff!important;border:1px solid #ffffff60;border-radius:9px;padding:8px 12px;font-size:13px;box-shadow:0 3px 14px #0002;margin:0}
html body .tutor-course-card.kacc-owned{border-color:#299a70!important}
html body .tutor-course-card.kacc-owned .tutor-card-footer :is(.tutor-btn,.kacc-owned-action),html body .tutor-sidebar-card.kacc-owned :is(a.tutor-btn,.kacc-owned-action){background:#176f4b!important;border-color:#176f4b!important;color:#fff!important;-webkit-text-fill-color:#fff!important}
html body .tutor-course-card.kacc-owned .tutor-card-footer :is(.tutor-btn,.kacc-owned-action):hover,html body .tutor-sidebar-card.kacc-owned :is(a.tutor-btn,.kacc-owned-action):hover{background:#10583a!important;border-color:#10583a!important}
html body .tutor-course-card .kacc-owned-action{margin:0!important;font-size:16px!important}
html body .tutor-course-card :is(.list-item-booking,.tutor-enrollment-status-wrapper){min-height:52px!important;font-size:14px!important;line-height:1.4!important}
html body .tutor-course-card :is(.list-item-booking,.tutor-enrollment-status-wrapper) .tutor-fs-7{font-size:14px!important}
html body .tutor-course-card .kacc-personal-note{margin:16px 0 0!important;padding:10px 12px!important;border:0!important;border-radius:10px;background:color-mix(in srgb,#229a6b 10%,var(--ka-panel))!important;gap:3px;flex:none}
html body .kacc-personal-note{min-width:0;width:100%;box-sizing:border-box;font-size:13px;line-height:1.5}
html body .tutor-course-card .kacc-personal-note :is(strong,span,.amount){font-size:12px!important;line-height:1.5!important}
html body .kacc-part-price{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px 12px;margin-top:14px;font-size:13px;line-height:1.5;color:var(--ka-muted)}
html body .kacc-part-price strong{font:600 18px/1.4 Arial,sans-serif;color:var(--ka-text);display:inline-flex;align-items:center;gap:7px}
html body .kacc-part-price del{font:400 13px/1.5 Arial,sans-serif!important;color:var(--ka-muted)!important}
html body .kacc-part-price :is(.amount,bdi){font-size:inherit!important;font-weight:inherit!important;color:inherit!important;white-space:nowrap}
html body .kacc-part-price.is-owned{padding:10px 12px;border-radius:10px;background:color-mix(in srgb,#229a6b 12%,transparent)}
html body .kacc-part-price .kacc-part-owned{font:600 14px/1.5 Arial,sans-serif;color:#70e0af}
html[data-ka-theme=light] body .kacc-part-price .kacc-part-owned{color:#16643e}
html body .tutor-course-details-actions{gap:8px!important;align-items:center!important}
html body .tutor-course-details-actions>:is(a,button){margin:0!important;flex:none!important}
html body .tutor-course-details-actions>:is(a,button){min-height:44px;display:inline-flex;align-items:center;justify-content:center;padding:8px 12px!important;box-sizing:border-box}
html body .tutor-course-details-actions .kacc-course-back{gap:8px!important}
/* Metadata belongs on its own full-width row, never in the thumbnail column. */
html body.ka-commerce-page .woocommerce :is(dl.variation,.wc-item-meta){display:block!important;width:100%!important;max-width:none!important;min-width:0!important;grid-column:1/-1!important;padding:12px 0 0!important;margin:0!important;border:0!important;text-align:left!important;white-space:normal!important;word-break:normal!important;overflow-wrap:break-word!important}
html body.ka-commerce-page .woocommerce :is(dl.variation,.wc-item-meta) :is(dt,dd,p,li,strong,span){float:none!important;display:inline!important;width:auto!important;max-width:none!important;min-width:0!important;padding:0!important;margin:0!important;font:400 13px/1.65 Arial,sans-serif!important;color:var(--ka-muted)!important;text-align:left!important;white-space:normal!important;word-break:normal!important;overflow-wrap:normal!important}
html body.ka-commerce-page .woocommerce dl.variation dt{font-weight:600!important;margin-right:5px!important}
html body.ka-commerce-page .woocommerce :is(dl.variation,.wc-item-meta) dd::after{content:'';display:block;margin-bottom:4px}
html body.ka-commerce-page .woocommerce .cart-contents>*{min-width:0}
html body.ka-commerce-page .woocommerce :is(.product-name,.cart-product-title){overflow-wrap:break-word!important;word-break:normal!important}
html body.ka-commerce-page .woocommerce .product-total{white-space:nowrap!important;text-align:right!important;vertical-align:top!important}
html body.ka-commerce-page .woocommerce .woocommerce-checkout-review-order-table{table-layout:auto!important;width:100%!important}
html body.ka-commerce-page .woocommerce .woocommerce-checkout-review-order-table td{vertical-align:top!important}
/* Filters share the site's surfaces and text tokens in both themes. */
html body .kacc-filter-form{padding:0!important;margin:0!important;border:0!important;background:transparent!important;min-width:0;color:var(--ka-text)!important}
html body .kacc-filter-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:24px}
html body .kacc-filter-head h2{font-size:21px!important;line-height:1.3!important;margin:0!important;color:var(--ka-text)!important}
html body .kacc-filter-head button{display:none}
html body .kacc-search-label{display:block;font-size:13px!important;font-weight:500!important;color:var(--ka-muted)!important;margin-bottom:10px}
html body .kacc-search-wrap{position:relative}
html body .kacc-search-wrap>svg{position:absolute;left:14px;top:50%;transform:translateY(-50%);color:var(--ka-muted);pointer-events:none}
html body .kacc-filter-form input[type=search]{width:100%!important;min-height:46px!important;padding:12px 14px!important;border:1px solid var(--ka-line)!important;border-radius:12px!important;background:var(--ka-panel)!important;color:var(--ka-text)!important;font:400 14px/1.5 Arial,sans-serif!important;box-shadow:none!important;box-sizing:border-box!important}
html body .kacc-search-wrap input[type=search]{padding-left:42px!important}
html body .kacc-filter-form input::placeholder{color:var(--ka-muted)!important;opacity:1}
html body .kacc-filter-group{min-width:0;border:0!important;border-top:1px solid var(--ka-line)!important;border-radius:0!important;margin:22px 0 0!important;padding:18px 0 0!important;background:none!important}
html body .kacc-filter-group legend{float:none;width:auto;padding:0 8px 0 0;font:600 14px/1.5 Arial,sans-serif!important;color:var(--ka-text)!important;margin:0 0 6px!important}
html body .kacc-filter-options{display:flex;flex-direction:column;gap:4px}
html body .kacc-filter-options label{display:flex!important;align-items:center!important;gap:11px!important;min-height:40px!important;padding:7px 9px!important;margin:0!important;border-radius:9px;cursor:pointer;color:var(--ka-text)!important;font:400 14px/1.45 Arial,sans-serif!important;box-sizing:border-box}
html body .kacc-filter-options label:hover{background:var(--ka-panel)}
html body .kacc-filter-options label:has(input:checked){background:color-mix(in srgb,#e78343 12%,transparent);color:var(--ka-text)!important}
html body .kacc-filter-options input[type=checkbox]{appearance:none!important;-webkit-appearance:none!important;flex:0 0 19px!important;width:19px!important;height:19px!important;margin:0!important;border:1px solid var(--ka-muted)!important;border-radius:5px!important;background:var(--ka-panel)!important;position:relative!important;box-shadow:none!important}
html body .kacc-filter-options input[type=checkbox]:checked{background:#af4213!important;border-color:#af4213!important;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m4 10 4 4 8-8' fill='none' stroke='white' stroke-width='2'/%3E%3C/svg%3E")!important;background-size:contain!important}
html body .kacc-filter-options input[type=checkbox]::before,html body .kacc-filter-options input[type=checkbox]::after{content:none!important}
html body .kacc-tags-picker>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;list-style:none;cursor:pointer;padding:12px;border:1px solid var(--ka-line);border-radius:12px;background:var(--ka-panel);color:var(--ka-text);font:400 14px/1.5 Arial,sans-serif}
html body .kacc-tags-picker>summary::-webkit-details-marker{display:none}
html body .kacc-tags-panel{padding:12px 0 0}
html body .kacc-tags-panel .kacc-filter-options{max-height:220px;overflow:auto;margin-top:8px}
html body .kacc-selected-tags{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
html body .kacc-selected-tags button{display:inline-flex;align-items:center;gap:8px;min-height:34px;border:1px solid var(--ka-line);background:var(--ka-panel);color:var(--ka-text);border-radius:30px;padding:6px 10px;font:500 12px/1.4 Arial,sans-serif;cursor:pointer}
html body .kacc-no-tags{font:400 13px/1.5 Arial,sans-serif!important;color:var(--ka-muted);margin:12px 0}
html body .kacc-filter-options [hidden],html body .kacc-no-tags[hidden]{display:none!important}
html body .kacc-filter-reset{display:inline-flex;align-items:center;justify-content:center;width:100%;min-height:44px;border-radius:10px;font:500 13px/1.4 Arial,sans-serif;color:var(--ka-muted);text-decoration:none!important}
html body .kacc-filter-reset:hover{background:var(--ka-panel);color:var(--ka-text)}
html body .kacc-filter-bottom{margin-top:24px}
html body :is(.kacc-filter-open,.kacc-filter-apply){display:none}
html body .kacc-filter-form :is(input,button,summary,a):focus-visible,html body .kacc-home-account :is(summary,button,a):focus-visible{outline:2px solid var(--ka-link)!important;outline-offset:3px}
html body .tutor-course-filter-container{padding-top:36px!important}
html body .kacc-filter-count:empty{display:none}
html body .kacc-catalog-heading{padding-top:30px!important}
@media(min-width:1200px){
 html body .tutor-course-filter-container{flex:0 0 254px!important;width:254px!important;padding-right:26px!important}
 html body .tutor-course-filter-container+.tutor-col-xl-9{width:calc(100% - 254px)!important;flex:1 1 0!important;min-width:0!important}
 html body .tutor-course-filter-container+.tutor-col-xl-9 .tutor-course-list{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:24px!important}
 html body .tutor-course-filter-container>.tutor-course-filter{padding:0!important;background:transparent!important}
}
@media(max-width:1199px){
 html body .tutor-courses-wrap .tutor-d-block.tutor-d-xl-none:has([tutor-toggle-course-filter]){display:none!important}
 html body .tutor-course-filter-container{display:none!important}
 html body.kacc-filter-is-open{overflow:hidden!important}
 html body.kacc-filter-is-open .tutor-course-filter-container{display:block!important;position:fixed!important;inset:0!important;width:100%!important;max-width:none!important;height:100vh!important;height:100dvh!important;margin:0!important;padding:0!important;background:var(--ka-bg)!important;z-index:100100!important;overflow:auto!important;transform:none!important;box-shadow:none!important}
 html body.kacc-filter-is-open .tutor-course-filter-container>.tutor-course-filter{position:static!important;transform:none!important;inset:auto!important;width:100%!important;height:auto!important;padding:24px 22px max(24px,env(safe-area-inset-bottom))!important;background:transparent!important;box-sizing:border-box!important;overflow:visible!important}
 html body .kacc-filter-head button{display:inline-flex!important;align-items:center;justify-content:center;width:44px;height:44px;min-height:44px;padding:0;border:1px solid var(--ka-line);border-radius:12px;background:var(--ka-panel);color:var(--ka-text);font:400 28px/1 Arial,sans-serif;cursor:pointer}
 html body .kacc-filter-form{max-width:600px;margin:0 auto!important}
 html body .kacc-filter-options label{min-height:44px!important}
 html body .kacc-filter-bottom{position:sticky;bottom:-1px;background:var(--ka-bg);padding:14px 0 2px;border-top:1px solid var(--ka-line);display:grid;grid-template-columns:1fr 1.2fr;gap:12px;align-items:center}
 html body .kacc-filter-apply{display:flex!important;align-items:center;justify-content:center;min-height:48px;border:0;border-radius:12px;background:#af4213;color:#fff;font:600 14px/1.4 Arial,sans-serif;padding:12px}
 html body .kacc-filter-open{display:inline-flex!important;align-items:center;justify-content:center;gap:8px;min-height:46px;white-space:nowrap;padding:11px 14px!important;background:var(--ka-panel)!important;color:var(--ka-text)!important;border:1px solid var(--ka-line)!important;border-radius:12px!important;font:600 14px/1.4 Arial,sans-serif!important}
 html body .kacc-sortbar{display:grid!important;grid-template-columns:auto minmax(0,1fr)!important;gap:12px!important;align-items:center!important;margin:0 0 24px!important;padding:18px 0!important}
 html body .kacc-sortbar>span{display:none!important}
 html body .kacc-sortbar form{min-width:0!important;width:100%!important;margin:0!important}
 html body .kacc-sortbar form :is(.ka-sort,.ka-sort-trigger){width:100%!important;min-width:0!important}
 html body .kacc-catalog-heading{padding-top:24px!important}
}
@media(max-width:767px){
 html body .tutor-course-card{height:auto!important}
 html body .tutor-course-card .kacc-description{-webkit-line-clamp:3!important;min-height:0!important;max-height:none!important}
 html body .tutor-course-card .tutor-card-body>.tutor-meta:last-child{margin-top:0!important;padding-top:18px!important}
 html body .tutor-course-card .tutor-card-footer{gap:12px!important}
 html body .kacc-catalog-heading h1{font-size:32px!important}
 html body .kacc-catalog-heading p{font-size:15px!important;line-height:1.6!important}
 html body .kacc-category-nav{gap:7px!important;margin-bottom:16px!important}
 html body .kacc-category-nav a{min-height:38px!important;padding:8px 12px!important;font-size:12px!important}
 html body .tutor-course-details-actions>:is(a,button){padding:8px!important;font-size:12px!important}
}
/* Homepage signed-in control. The cart stays last. */
html body .ka-home-actions{gap:12px!important;overflow:visible!important}
html body .kacc-home-account{position:relative;flex:none;color:var(--ka-text);z-index:1000}
html body .kacc-home-account>summary{display:flex;align-items:center;gap:10px;min-height:48px;padding:5px 12px 5px 5px;box-sizing:border-box;border:1px solid var(--ka-line);border-radius:15px;background:var(--ka-panel);color:var(--ka-text);cursor:pointer;list-style:none}
html body .kacc-home-account>summary::-webkit-details-marker{display:none}
html body .kacc-home-account .tutor-avatar{width:36px!important;height:36px!important;min-width:36px!important;border-radius:10px!important;overflow:hidden}
html body .kacc-home-account .tutor-avatar img{width:100%;height:100%;object-fit:cover}
html body .kacc-home-account-copy{display:flex;flex-direction:column;text-align:left}
html body .kacc-home-account-copy small{font:400 10px/1.4 Arial,sans-serif;color:var(--ka-muted)}
html body .kacc-home-account-copy strong{font:600 14px/1.4 Arial,sans-serif;max-width:160px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html body .kacc-home-menu{position:absolute;top:calc(100% + 10px);right:0;width:310px;padding:18px;border:1px solid var(--ka-line);border-radius:20px;background:var(--ka-panel);box-shadow:0 18px 60px #0004;color:var(--ka-text);box-sizing:border-box}
html body .kacc-home-account:not([open])>.kacc-home-menu{display:none!important}
html body .kacc-home-menu-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:4px 6px 16px;border-bottom:1px solid var(--ka-line);margin-bottom:10px}
html body .kacc-home-menu-heading>div{display:flex;flex-direction:column;gap:7px;min-width:0}
html body .kacc-home-menu-heading small{font:500 10px/1.4 Arial,sans-serif;letter-spacing:.1em;color:var(--ka-muted)}
html body .kacc-home-menu-heading strong{font:600 17px/1.4 Arial,sans-serif;color:var(--ka-text);overflow-wrap:break-word}
html body .kacc-home-menu-heading button{display:flex;align-items:center;justify-content:center;flex:none;width:40px;height:40px;background:transparent;color:var(--ka-text);border:1px solid var(--ka-line);border-radius:10px;font:400 24px/1 Arial,sans-serif;padding:0;cursor:pointer}
html body .kacc-home-menu nav{display:flex;flex-direction:column;gap:3px}
html body .kacc-home-menu nav a{display:flex;align-items:center;gap:12px;padding:12px 10px;border-radius:10px;min-height:46px;box-sizing:border-box;color:var(--ka-text)!important;text-decoration:none!important;font:500 14px/1.4 Arial,sans-serif}
html body .kacc-home-menu nav a:hover{background:color-mix(in srgb,var(--ka-text) 7%,transparent)}
html body .kacc-home-menu nav a>svg:last-child:not(:first-child){width:15px;height:15px;margin-left:auto;color:var(--ka-muted)}
html body .kacc-home-menu nav a.kacc-account-logout{color:var(--ka-muted)!important}
html body .kacc-home-menu .kacc-account-appearance{margin-top:12px;padding-top:12px}
@media(max-width:767px){
 html body .kacc-home-account-copy,html body .kacc-home-account>summary>svg{display:none}
 html body .kacc-home-account>summary{width:48px;height:48px;padding:5px;justify-content:center}
 html body .ka-home-actions{gap:8px!important}
 html body .kacc-home-account[open] .kacc-home-menu{position:fixed!important;inset:0!important;width:100%!important;height:100vh;height:100dvh;border:0;border-radius:0;padding:24px 20px max(24px,env(safe-area-inset-bottom));overflow:auto;background:var(--ka-bg);z-index:100100}
 html body .kacc-home-menu nav a{min-height:52px;font-size:16px;padding:14px}
 html body:has(.kacc-home-account[open]){overflow:hidden}
}

html body .ka-home-actions>.kacc-home-account{order:0!important}
html body .ka-home-actions>[data-ka-home-cart]{order:1!important}

html body.kacc-commerce-preview .tutor-course-thumbnail img{width:100%;height:auto;aspect-ratio:16/9;object-fit:cover}
@media(min-width:768px){
 html body .tutor-course-card .kacc-description{-webkit-line-clamp:9!important}
 html body .tutor-course-card.kacc-owned .tutor-card-footer:not(:has(.list-item-price,.tutor-course-price))::before{content:'Обучение уже доступно';display:flex;align-items:center;min-height:33px;color:var(--ka-muted);font:500 13px/1.5 Arial,sans-serif}
}
html body .tutor-course-card.kacc-covered .tutor-card-footer .tutor-course-booking-availability{display:none!important}
html body .tutor-course-card .kacc-in-cart{min-height:52px!important}
html body .kacc-home-account[open]{z-index:100200!important}
