/* VolleyWood — раздел «Тренировки». Подключается только на его страницах.
   Токены — из app.css. Кнопки и плашки с текстом: тёмное с белым или белое с тёмным. */

.co-pro { display: inline-flex; align-items: center; padding: 2px 7px; border-radius: 6px; background: var(--orange-deep); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .05em; vertical-align: middle; }
.co-lite { display: inline-flex; align-items: center; padding: 2px 7px; border-radius: 6px; background: var(--sea); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .05em; vertical-align: middle; }

.co-pill { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; white-space: nowrap; background: var(--navy); color: #fff; }
.co-pill.good { background: var(--olive); }
.co-pill.hot { background: var(--orange-deep); }
.co-pill.out { background: #fff; color: var(--navy); border: 2px solid var(--navy); padding: 2px 8px; }
.co-pill.mute { background: var(--soft); color: var(--slate); }

.co-bar { height: 8px; border-radius: 4px; background: var(--soft); overflow: hidden; }
.co-bar i { display: block; height: 100%; background: var(--orange); }

/* карточки занятий */
.co-list { display: flex; flex-direction: column; gap: 10px; }
.co-ses { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; color: var(--ink); }
a.co-ses:hover { border-color: var(--navy); color: var(--ink); }
.co-ses.cancel { background: var(--soft); }
.co-ses.cancel .co-t, .co-ses.cancel b { text-decoration: line-through; color: var(--slate); }
.co-t { font-family: 'Unbounded', sans-serif; font-weight: 700; font-size: 16px; color: var(--sea); line-height: 1.25; }
.co-t small { display: block; font-family: 'Manrope', sans-serif; font-size: 12px; color: var(--slate); font-weight: 700; }
.co-ses .nm { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.co-ses .nm b { font-weight: 800; font-size: 16px; }
.co-ses .nm small { color: var(--slate); font-weight: 600; font-size: 13px; }
.co-ses .rt { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.co-ses .rt form { margin: 0; }
.co-ses .rt .btn-line { width: auto; padding: 0 16px; }
.co-ses .co-bar { margin-top: 4px; max-width: 260px; }
@media (max-width: 600px) {
  .co-ses { grid-template-columns: minmax(0, 1fr) auto; }
  .co-ses .co-t { grid-column: 1 / -1; }
}

/* отметка посещений */
.co-att { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 16px; }
.co-ar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--soft); scroll-margin-top: 80px; }
.co-ar:last-child { border-bottom: 0; }
.co-ar .nm { display: flex; flex-direction: column; min-width: 0; }
.co-ar .nm b { font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.co-ar .nm small { color: var(--slate); font-weight: 600; font-size: 13px; }
.co-ar .nm small.warn { color: var(--orange-deep); font-weight: 800; }
.co-ar.off .nm b { color: var(--slate); }
.co-mk { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.co-mk form { margin: 0; }
.co-mk button { width: 48px; height: 48px; border-radius: 12px; border: 2px solid var(--line); background: #fff; color: var(--navy); font: 800 20px 'Manrope', sans-serif; cursor: pointer; }
.co-mk button:hover { border-color: var(--navy); }
.co-mk button.on-yes { background: var(--olive); border-color: var(--olive); color: #fff; }
.co-mk button.on-no { background: #B42318; border-color: #B42318; color: #fff; }
.co-mk button.on-late { background: var(--sea); border-color: var(--sea); color: #fff; }
.co-mk button.wide { width: auto; padding: 0 12px; font-size: 14px; }
.co-mk button[disabled] { opacity: .5; cursor: default; }
.co-sum { display: flex; gap: 8px; flex-wrap: wrap; }
.co-sum span { padding: 6px 12px; border-radius: 10px; background: #fff; border: 1px solid var(--line); font-weight: 800; font-size: 14px; }
.co-bottom { display: flex; gap: 10px; flex-wrap: wrap; }
.co-bottom > * { flex: 1 1 200px; }
.co-bottom form { display: flex; }
.co-bottom form .btn, .co-bottom form .btn-line { width: 100%; }

/* формы */
.co-form { display: flex; flex-direction: column; gap: 16px; }
.co-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.co-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 700px) { .co-2, .co-3 { grid-template-columns: minmax(0, 1fr); } }
.co-form select, .co-in { height: 52px; padding: 0 12px; border: 2px solid var(--line); border-radius: 12px; font: 700 16px 'Manrope', sans-serif; color: var(--ink); background: #fff; width: 100%; }
.co-form select:focus, .co-in:focus { outline: none; border-color: var(--navy); }
.co-inline { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-end; }
.co-inline .field { flex: 1 1 140px; }
.co-inline .btn { height: 52px; }
.co-seg { display: flex; flex-wrap: wrap; gap: 6px; }
.co-seg label { cursor: pointer; }
.co-seg input { position: absolute; opacity: 0; pointer-events: none; }
.co-seg span { display: inline-flex; align-items: center; height: 44px; padding: 0 14px; border-radius: 12px; border: 2px solid var(--line); background: #fff; color: var(--navy); font-weight: 800; font-size: 15px; }
.co-seg input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.co-seg input:focus-visible + span { outline: 3px solid var(--sea); outline-offset: 2px; }
.co-note { font-size: 13px; color: var(--slate); font-weight: 600; }
.co-pro-box { border: 2px dashed #F0C9B5; border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.co-pro-box.off { opacity: .65; }

/* строки списков */
.co-rows { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 16px; }
.co-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--soft); flex-wrap: wrap; }
.co-row:last-child { border-bottom: 0; }
.co-row .nm { display: flex; flex-direction: column; min-width: 0; flex: 1 1 200px; }
.co-row .nm b { font-weight: 800; }
.co-row .nm small { color: var(--slate); font-weight: 600; font-size: 13px; }
.co-row .act { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.co-row .act form { margin: 0; display: flex; gap: 6px; align-items: center; }
.co-row .act .btn-line { width: auto; padding: 0 14px; }
.co-row .act select { height: 38px; border: 2px solid var(--line); border-radius: 10px; font: 700 14px 'Manrope', sans-serif; padding: 0 8px; background: #fff; color: var(--ink); }
.co-num { font-family: 'Unbounded', sans-serif; font-weight: 700; white-space: nowrap; }
.co-neg { color: var(--orange-deep); }
.co-pos { color: var(--olive); }

/* карточки групп в каталоге */
.co-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1000px) { .co-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .co-groups { grid-template-columns: minmax(0, 1fr); } }
.co-gcard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 8px; color: var(--ink); }
a.co-gcard:hover { border-color: var(--navy); color: var(--ink); }
.co-gcard .co-gtop { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.co-gcard b { font-size: 18px; font-weight: 800; line-height: 1.25; }
.co-gcard small { color: var(--slate); font-weight: 700; font-size: 14px; }
.co-gcard .when { color: var(--sea); font-weight: 800; font-size: 14px; }
.co-gcard .co-gfoot { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--soft); display: flex; justify-content: space-between; gap: 8px; font-size: 14px; font-weight: 800; }

.co-filters { display: flex; flex-direction: column; gap: 10px; }
.co-filters .chips a { padding: 8px 14px; border-radius: 999px; border: 2px solid var(--line); background: #fff; color: var(--navy); font-size: 14px; }
.co-filters .chips a.on { background: var(--navy); border-color: var(--navy); color: #fff; }

/* слоты расписания */
.co-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.co-week div { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px; min-height: 64px; display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 800; }
.co-week div > span:first-child { color: var(--slate); font-size: 12px; letter-spacing: .04em; }
.co-week i { font-style: normal; background: var(--navy); color: #fff; border-radius: 8px; padding: 3px 6px; text-align: center; }
@media (max-width: 600px) { .co-week { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.co-picker { position: relative; }
.co-picker .pk-res { margin-top: 6px; }
.co-picked { font-weight: 800; color: var(--olive); }

.co-switch { display: flex; gap: 8px; flex-wrap: wrap; }
.co-switch a { background: var(--navy-2); color: #fff; padding: 8px 14px; border-radius: 12px; font-size: 14px; }
.co-switch a.on { background: #fff; color: var(--navy); }

.co-plan { white-space: pre-wrap; background: var(--soft); border-radius: 12px; padding: 12px 14px; font-weight: 600; }
.co-log { font-size: 13px; color: var(--slate); font-weight: 600; display: flex; flex-direction: column; gap: 4px; }
.co-section { scroll-margin-top: 20px; }
details.co-more > summary { cursor: pointer; font-weight: 800; color: var(--sea); list-style: none; }
details.co-more > summary::-webkit-details-marker { display: none; }
details.co-more[open] > summary { margin-bottom: 12px; }

/* на тёмной шапке — белые плашки */
.thead .co-pill { background: #fff; color: var(--navy); }
.thead .co-pill.good { background: #EAF2DD; color: var(--olive); }
.thead .co-pill.mute { background: var(--navy-2); color: #fff; }

/* телефон: имя над кнопками, кнопки крупнее */
@media (max-width: 600px) {
  .co-ar { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .co-ar .nm b { white-space: normal; }
  .co-mk { justify-content: flex-start; }
  .co-mk button { width: 56px; height: 52px; }
  .co-mk button.wide { width: auto; }
  .co-mk form:last-child:has(button.wide) { margin-left: auto; }
}
.btn[disabled], .btn-line[disabled] { opacity: .45; cursor: default; }

/* фильтр каталога: варианты переносятся, а не уезжают за край — выбранное всегда видно */
.co-catalog .seg { flex-wrap: wrap; overflow: visible; }

/* демо тренировок: полоса над экранами и всплывающая подсказка */
.co-demo-bar { background: var(--orange-soft); border-bottom: 1px solid #F0C9B5; }
.co-demo-in { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; padding-top: 10px; padding-bottom: 6px; }
.co-demo-home { color: var(--orange-deep); font-weight: 800; }
.co-demo-g { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.co-demo-l { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--slate); }
.co-demo-g a { padding: 5px 10px; border-radius: 999px; background: #fff; color: var(--navy); font-size: 14px; }
.co-demo-g a.on { background: var(--navy); color: #fff; }
.co-demo-cta { margin-left: auto; background: var(--navy); color: #fff; padding: 7px 14px; border-radius: 10px; font-size: 14px; }
.co-demo-cta:hover { color: #fff; background: var(--navy-2); }
.co-demo-note { font-size: 13px; color: var(--slate); font-weight: 600; padding-bottom: 10px; }
.co-toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 50; max-width: min(520px, calc(100% - 32px));
            background: var(--navy); color: #fff; padding: 12px 16px; border-radius: 12px; font-weight: 700; font-size: 14px; box-shadow: 0 8px 24px rgba(1, 34, 85, .25); }
.co-demo-cards .co-gcard .kick { color: var(--orange-deep); }
@media (max-width: 600px) { .co-demo-cta { margin-left: 0; } }

/* кнопка внизу карточки демо: занимает низ карточки, у всех карточек на одной линии */
.co-gcta { margin-top: auto; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 16px; border-radius: 12px;
           background: var(--navy); color: #fff; font-weight: 800; font-size: 15px; text-align: center; }
.co-gcta::after { content: '→'; }
a.co-gcard:hover .co-gcta { background: var(--navy-2); }
.co-demo-cards .co-gcard small { margin-bottom: 6px; }

/* календарь «Мои тренировки» */
.co-cal { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.co-cal-head { display: flex; align-items: center; gap: 10px; }
.co-cal-head h2 { flex: 1; text-align: center; font-size: clamp(18px, 2.2vw, 22px); }
.co-cal-nav { width: 44px; height: 44px; border-radius: 12px; border: 2px solid var(--line); display: flex; align-items: center; justify-content: center; font-size: 24px; color: var(--navy); line-height: 1; }
.co-cal-nav:hover { border-color: var(--navy); }
.co-cal-today { font-size: 14px; }
.co-cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.co-cal-wd { text-align: center; font-size: 12px; font-weight: 800; letter-spacing: .04em; color: var(--slate); padding: 2px 0 4px; }
.co-cal-d { min-height: 92px; border-radius: 10px; border: 1px solid var(--soft); padding: 6px; display: flex; flex-direction: column; gap: 3px; color: var(--ink); font-weight: 700; min-width: 0; overflow: hidden; }
.co-cal-d:hover { border-color: var(--fog); color: var(--ink); }
.co-cal-d .n { font-size: 14px; font-weight: 800; }
.co-cal-d.other { background: var(--bg); color: var(--fog); }
.co-cal-d.other .co-cal-e { opacity: .6; }
.co-cal-d.today .n { background: var(--orange-deep); color: #fff; border-radius: 8px; padding: 0 6px; align-self: flex-start; }
.co-cal-d.sel { border: 2px solid var(--navy); padding: 5px; }
.co-cal-e { display: flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink); }
.co-cal-e b { font-weight: 800; }
.co-cal-e i { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--olive); }
.co-cal-e.k-wait i { background: #fff; border: 2px solid var(--navy); }
.co-cal-e.k-cancel i { background: var(--fog); }
.co-cal-e.k-cancel { text-decoration: line-through; color: var(--slate); }
.co-cal-e.k-came i { background: var(--sea); }
.co-cal-e.k-missed i { background: #B42318; }
.co-cal-e.k-late i { background: var(--orange-deep); }
.co-cal-more { font-size: 11px; color: var(--slate); font-weight: 800; }
.co-cal-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.co-cal-legend .co-cal-e { text-decoration: none; color: var(--slate); }
.co-cal-day { display: flex; flex-direction: column; gap: 10px; scroll-margin-top: 16px; }
.co-cal-day h3 { margin: 6px 0 0; font-family: 'Unbounded', sans-serif; font-size: 17px; font-weight: 600; }
/* телефон: в клетке только число и точки в ряд */
@media (max-width: 700px) {
  .co-cal { padding: 10px; }
  .co-cal-grid { gap: 3px; }
  .co-cal-d { min-height: 52px; padding: 4px 2px; flex-direction: row; flex-wrap: wrap; justify-content: center; align-content: flex-start; gap: 3px; }
  .co-cal-d.sel { padding: 3px 1px; }
  .co-cal-d .n { width: 100%; text-align: center; font-size: 14px; }
  .co-cal-d.today .n { width: auto; align-self: auto; }
  .co-cal-d .co-cal-e { font-size: 0; gap: 0; }
  .co-cal-d .co-cal-e b { display: none; }
  .co-cal-d .co-cal-e i { width: 8px; height: 8px; }
  .co-cal-d .co-cal-more { display: none; }
}

/* ---------- Блок «Тренеры» на /training (_co_ccard.php); фото и имя — классы карточки игрока .pl-* из app.css ---------- */
.co-cbar { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-top: 18px; scroll-margin-top: 16px; }
.co-cbar small { font-size: 14px; font-weight: 700; color: var(--slate); }
.co-coaches { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1100px) { .co-coaches { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 800px) { .co-coaches { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.co-ccard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 12px; color: var(--ink); min-width: 0; }
.co-ccard:hover { border-color: var(--navy); color: var(--ink); }
.co-ctop { display: flex; align-items: center; gap: 12px; min-width: 0; min-height: 60px; }
.co-ctop .pl-n b { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.co-ccard .tag { text-transform: uppercase; font-size: 11px; }
.co-cx { font-size: 13px; font-weight: 700; color: var(--slate); line-height: 1.4; min-height: calc(2 * 1.4em); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.co-cdays { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.co-cdays i { font-style: normal; height: 26px; border-radius: 7px; display: grid; place-items: center; font-size: 11px; font-weight: 800; background: var(--soft); color: #A3AEC0; }
.co-cdays i.on { background: var(--navy); color: #fff; }
.co-cfoot { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--soft); display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 13px; font-weight: 800; white-space: nowrap; min-width: 0; }
.co-cfoot span:last-child { color: var(--slate); font-weight: 700; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
@media (max-width: 640px) {
  /* Телефон: лента, которую листают вбок */
  .co-coaches { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; margin: 0 -16px; padding: 0 16px 6px; scrollbar-width: none; }
  .co-coaches::-webkit-scrollbar { display: none; }
  .co-ccard { flex: 0 0 272px; scroll-snap-align: start; }
}
.co-call { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; white-space: nowrap; }
.co-call .ico { width: 18px; height: 18px; }
.co-cnote { margin: -8px 0 0; }
@media (max-width: 640px) {
  /* На странице всех тренеров — список, не лента */
  .co-coaches.co-all { display: grid; grid-template-columns: minmax(0, 1fr); overflow: visible; margin: 0; padding: 0; }
  .co-all .co-ccard { flex: none; }
}
