
/* ── Роль в походе: 2 строки, стандартные radio ── */
.cf-primary-role-list {
  display: flex; flex-direction: column; gap: 8px;
}
.cf-primary-role-item {
  display: flex; align-items: center; gap: 8px;
  font-family: 'Roboto Condensed', sans-serif;
  font-size: .92rem; font-weight: 600; color: var(--cf-navy);
  cursor: pointer;
}
.cf-primary-role-item input[type="radio"] {
  width: 16px; height: 16px; cursor: pointer;
  accent-color: var(--cf-navy); flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════
   ЦВЕТОВАЯ ЛОГИКА v2.4
   Фон блока = тип похода
   Цвет шрифта = тип коммерции
   Ищу место = особый фиолетовый
════════════════════════════════════════════════════ */

/* ── Фон: тип похода ── */
.cf-color-cruise    { background: #1E90FF; }  /* Круиз */
.cf-color-training  { background: #008080; }  /* Обучение */
.cf-color-practice  { background: #556B2F; }  /* Практика */
.cf-color-regata    { background: #8B0000; }  /* Регата */

/* ── Ищу место — всегда фиолетовый ── */
.cf-color-seeking   { background: #4B0082; color: #FFFFFF !important; }

/* ── Цвет шрифта: тип коммерции ── */
/* По умолчанию (нет коммерции) — белый */
.cf-color-cruise,
.cf-color-training,
.cf-color-practice,
.cf-color-regata  { color: #FFFFFF; }

/* Частичная коммерция — чёрный */
.cf-ct-partial { color: #000000 !important; }

/* Коммерция со скидками — ярко-жёлтый */
.cf-ct-discount { color: #FFFF00 !important; }

/* Нет коммерции — белый (явно) */
.cf-ct-none { color: #FFFFFF !important; }

/* Совместимость со старыми классами */
.cf-color-organizer  { background: #1E90FF; color: #FFFFFF; }  /* = cruise */
.cf-color-commercial { background: #008080; color: #FFFFFF; }  /* = training */
.cf-color-discount   { background: #1E90FF; color: #FFFF00; }  /* = cruise + discount */
.cf-color-regular    { background: #1E90FF; color: #FFFFFF; }  /* = cruise */
.cf-color-0,.cf-color-1,.cf-color-2,.cf-color-3,.cf-color-4,
.cf-color-5,.cf-color-6,.cf-color-7,.cf-color-8,.cf-color-9
                     { background: #1E90FF; color: #FFFFFF; }


/* ═══════════════════════════════════════════════
   ЦВЕТОВАЯ СХЕМА v2.4
   Фон = тип похода, Шрифт = тип коммерции
═══════════════════════════════════════════════ */

/* ── Базовые цвета фона (тип похода) ── */
/* Круиз */
/* Обучение */
/* Практика */
/* Ищу место */

/* ── Цвет шрифта (тип коммерции) поверх базового ── */
/* Нет коммерции → белый */
.cf-color-cruise.cf-commerce-none,
.cf-color-training.cf-commerce-none,
.cf-color-practice.cf-commerce-none,
.cf-color-regata.cf-commerce-none     { color: #FFFFFF; }
/* Частичная коммерция → чёрный */
.cf-color-cruise.cf-commerce-partial,
.cf-color-training.cf-commerce-partial,
.cf-color-practice.cf-commerce-partial,
.cf-color-regata.cf-commerce-partial   { color: #000000; }
/* Коммерция со скидками → ярко-жёлтый */
.cf-color-cruise.cf-commerce-discount,
.cf-color-training.cf-commerce-discount,
.cf-color-practice.cf-commerce-discount,
.cf-color-regata.cf-commerce-discount   { color: #FFFF00; }
/* Ищу место → всегда белый */
/* Совместимость со старыми классами */
.cf-color-0 { background: #1E90FF; color: #fff; }
.cf-color-1 { background: #1E90FF; color: #fff; }
.cf-color-2 { background: #1E90FF; color: #fff; }
.cf-color-3 { background: #1E90FF; color: #fff; }
.cf-color-4 { background: #1E90FF; color: #fff; }
.cf-color-5 { background: #1E90FF; color: #fff; }
.cf-color-6 { background: #1E90FF; color: #fff; }
.cf-color-7 { background: #1E90FF; color: #fff; }
.cf-color-8 { background: #1E90FF; color: #fff; }
.cf-color-9 { background: #1E90FF; color: #fff; }

/* ── Блок "N заявок" (≥4) ── */
.cf-day-count-btn {
    display: flex; align-items: center; justify-content: center;
    height: calc(2 * 20px + 4px);
    background: #483D8B;
    color: #FFFFFF;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 1.3rem; font-weight: 700;
    cursor: pointer; transition: background .15s;
    border-radius: 3px; margin-top: 2px;
    border: none; width: 100%;
}
.cf-day-count-btn:hover { background: #5a4ea8; }

/* Сетка ролей первого уровня */
.cf-role-grid--2 { grid-template-columns: 1fr 1fr !important; }
.cf-role-grid--3 { grid-template-columns: repeat(3,1fr) !important; }


/* ═══════════════════════════════════════════════
   КРОППЕР + ЛАЙТБОКС
═══════════════════════════════════════════════ */
#cf-crop-canvas {
  border: 2px solid var(--cf-border);
  border-radius: 6px;
  cursor: move;
  user-select: none;
  -webkit-user-select: none;
  max-width: 100%;
  display: block;
  margin: 0 auto;
}

/* Лайтбокс фото */
.cf-lightbox {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.88); z-index: 99999;
  display: none; align-items: center; justify-content: center;
  padding: 20px;
}
.cf-lightbox.cf-lb-show { display: flex; }
.cf-lightbox-inner {
  position: relative; max-width: min(90vw, 700px);
  max-height: 90vh;
}
.cf-lightbox-inner img {
  display: block; max-width: 100%; max-height: 90vh;
  border-radius: 8px; box-shadow: 0 8px 40px rgba(0,0,0,.5);
}
.cf-lightbox-close {
  position: absolute; top: -14px; right: -14px;
  width: 32px; height: 32px; border-radius: 50%;
  background: #fff; border: none; font-size: .9rem;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.3); line-height: 1;
}
.cf-lightbox-close:hover { background: var(--cf-light); }

/* Аватар в попапе деталей заявки — кликабелен */
.cf-detail-avatar { cursor: pointer; transition: opacity .15s; }
.cf-detail-avatar:hover { opacity: .85; }

/* Аватар в шапке тоже кликабелен */
.cf-user-avatar[onclick], img.cf-user-avatar { cursor: pointer; }


/* ═══════════════════════════════════════
   АВАТАР ПОЛЬЗОВАТЕЛЯ
═══════════════════════════════════════ */
/* В шапке рядом с именем */
.cf-user-name-btn {
  background: none; border: none; cursor: pointer;
  display: flex; align-items: center; gap: 8px;
  padding: 0; -webkit-tap-highlight-color: transparent;
}
.cf-user-name-btn:hover .cf-user-name { text-decoration: underline; }

.cf-user-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
  border: 2px solid rgba(255,255,255,.4);
  display: block; overflow: hidden;
}
.cf-user-name-btn img.cf-user-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
}
.cf-user-avatar--initials {
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.15);
  font-family: 'Roboto Condensed', sans-serif;
  font-size: .82rem; font-weight: 700; color: #fff;
  letter-spacing: .04em;
}

/* В попапе деталей заявки */
.cf-detail-avatar-wrap {
  display: flex; justify-content: center; margin-bottom: 14px;
}
.cf-detail-avatar {
  width: 80px; height: 80px; border-radius: 50%;
  object-fit: cover; border: 3px solid var(--cf-border);
  display: block;
}

/* Блок «о яхтсмене» в попапе */
.cf-detail-about {
  margin-top: 14px; padding-top: 12px;
  border-top: 1.5px solid var(--cf-border);
}
.cf-detail-about-title {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: .75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: var(--cf-navy); margin-bottom: 7px;
}
.cf-detail-about p {
  font-size: .88rem; color: var(--cf-text-sec); line-height: 1.6;
  white-space: pre-wrap; word-break: break-word;
}

/* Превью фото в модале профиля */
.cf-profile-photo-wrap {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 16px 0 8px;
}
.cf-profile-avatar {
  width: 80px; height: 80px; border-radius: 50%;
  border: 2px solid var(--cf-border); overflow: hidden;
  background: var(--cf-bg); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.cf-profile-avatar img {
  width: 80px; height: 80px; border-radius: 50%;
  object-fit: cover; display: block;
}
.cf-profile-photo-actions {
  display: flex; gap: 8px; flex-wrap: wrap; justify-content: center;
}
.cf-profile-upload-btn { cursor: pointer; }

/* File input стиль */
.cf-file-input {
  padding: 6px 0 !important;
  background: none !important; border: none !important;
  font-size: .85rem;
}

/* Счётчик символов */
.cf-char-hint { color: var(--cf-muted); font-size: .72rem; text-align: right; }

/* optional метка */
.cf-optional { font-weight: 400; color: var(--cf-muted); font-style: italic; }


/* ═══════════════════════════════════════════════
   ШАПКА — двухстрочная правая колонка
═══════════════════════════════════════════════ */
.cf-header {
  background: linear-gradient(135deg, #0a1e38 0%, #0f3060 55%, #0c5060 100%);
  padding: 0;
  border-bottom: 3px solid var(--cf-orange);
}
.cf-header-inner {
  max-width: 1320px; margin: 0 auto;
  display: flex; align-items: stretch;
  justify-content: space-between;
  padding: 0 20px;
  min-height: 80px;
}
/* Левая часть: логотип */
.cf-header-brand {
  display: flex; flex-direction: column; justify-content: center;
  padding: 16px 0;
}
/* Правая часть: две строки */
.cf-header-right {
  display: flex; flex-direction: column;
  justify-content: center; align-items: flex-end;
  gap: 6px; padding: 12px 0;
}
/* Строка 1: имя + выйти */
.cf-header-user {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  justify-content: flex-end;
}
/* Строка 2: кнопки действий */
.cf-header-actions {
  display: flex; align-items: center; gap: 8px;
}
.cf-page-title {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  color: #fff; font-weight: 700;
  letter-spacing: .04em; line-height: 1.15;
  text-transform: uppercase; margin: 0 0 4px;
}
.cf-page-sub {
  font-family: 'Roboto', sans-serif;
  font-size: clamp(.72rem, 1.4vw, .85rem);
  color: rgba(255,255,255,.6); margin: 0; line-height: 1.3;
}
.cf-user-name {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: .88rem; font-weight: 700; color: #B0E4CC;
  letter-spacing: .04em; white-space: nowrap;
}
.cf-user-status {
  font-size: .7rem; color: rgba(255,255,255,.5);
  background: rgba(255,255,255,.08); border-radius: 3px;
  padding: 2px 8px; border: 1px solid rgba(255,255,255,.15);
  white-space: nowrap;
}

/* Кнопка колокольчик — строка 2, белый текст */
.cf-btn-bell {
  background: rgba(255,255,255,.1);
  border: 1.5px solid rgba(255,255,255,.25);
  border-radius: 20px;
  padding: 5px 12px;
  font-size: .75rem; cursor: pointer;
  display: flex; align-items: center; gap: 5px;
  transition: all .15s; flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
}
.cf-btn-bell:hover { background: rgba(255,255,255,.22); border-color: rgba(255,255,255,.5); }
.cf-btn-bell-label {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: .75rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: #fcfcfc;
}

/* Кнопка языка */
.cf-btn-lang {
  background: rgba(255,255,255,.1);
  border: 1.5px solid rgba(255,255,255,.25);
  border-radius: 20px; padding: 5px 12px;
  font-family: 'Roboto Condensed', sans-serif;
  font-size: .75rem; font-weight: 700; letter-spacing: .06em;
  color: #fcfcfc; cursor: pointer;
  transition: all .15s; flex-shrink: 0; white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.cf-btn-lang:hover { background: rgba(255,255,255,.22); border-color: rgba(255,255,255,.5); }

/* ── Адаптив шапки ── */
@media (max-width: 860px) {
  .cf-header-inner { flex-direction: column; padding: 14px 16px; gap: 10px; min-height: unset; }
  .cf-header-right  { align-items: flex-start; }
  .cf-header-user   { justify-content: flex-start; }
}
@media (max-width: 520px) {
  .cf-page-title { font-size: 1rem; }
  .cf-page-sub   { font-size: .72rem; }
  .cf-btn-bell-label { display: none; }
  .cf-btn-bell   { border-radius: 50%; padding: 6px; width: 30px; height: 30px; justify-content: center; font-size: .85rem; }
}


/* ── Кнопка переключения языка ── */
.cf-btn-lang {
  background: rgba(255,255,255,.12);
  border: 1.5px solid rgba(255,255,255,.3);
  border-radius: 20px;
  padding: 5px 12px;
  font-family: 'Roboto Condensed', sans-serif;
  font-size: .78rem; font-weight: 700; letter-spacing: .06em;
  color: #fff; cursor: pointer;
  transition: all .15s; flex-shrink: 0;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.cf-btn-lang:hover { background: rgba(255,255,255,.25); border-color: rgba(255,255,255,.6); }


/* ═══════════════════════════════════════════
   ПОДПИСКА — кнопка и модал
═══════════════════════════════════════════ */

/* Кнопка-колокольчик в шапке */
.cf-btn-bell {
  background: rgba(255,255,255,.12);
  border: 1.5px solid rgba(255,255,255,.3);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: .82rem; cursor: pointer;
  display: flex; align-items: center; gap: 6px;
  transition: all .15s; flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
}
.cf-btn-bell:hover { background: rgba(255,255,255,.25); border-color: rgba(255,255,255,.6); }
.cf-btn-bell-label {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: .78rem; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: #fff;
}
/* На смартфоне — только иконка */
@media (max-width: 520px) {
  .cf-btn-bell-label { display: none; }
  .cf-btn-bell { border-radius: 50%; padding: 6px; width: 34px; height: 34px; justify-content: center; }
}

/* Чекбоксы типов похода в форме подписки */
.cf-sub-types {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.cf-sub-type-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 14px;
  border: 1.5px solid var(--cf-border);
  border-radius: 20px; cursor: pointer;
  background: #f8fcff; transition: all .15s;
  font-family: 'Roboto Condensed', sans-serif;
  font-size: .82rem; font-weight: 700;
  color: var(--cf-navy);
  -webkit-tap-highlight-color: transparent;
}
.cf-sub-type-btn input { display: none; }
.cf-sub-type-btn:has(input:checked) {
  background: var(--cf-navy); color: #fff; border-color: var(--cf-navy);
}
.cf-sub-type-btn:hover:not(:has(input:checked)) {
  border-color: var(--cf-sky); background: var(--cf-light);
}

/* Список активных подписок */
.cf-sub-item {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 9px 12px;
  background: var(--cf-bg); border: 1.5px solid var(--cf-border);
  border-radius: var(--cf-radius); margin-bottom: 6px;
  font-size: .84rem;
}
.cf-sub-item-info {
  display: flex; flex-direction: column; gap: 2px; min-width: 0;
}
.cf-sub-item-info strong { color: var(--cf-navy); font-size: .88rem; }
.cf-sub-item-info span   { color: var(--cf-muted); font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cf-del-sub {
  background: none; border: 1.5px solid var(--cf-border);
  border-radius: 50%; width: 26px; height: 26px;
  font-size: .72rem; cursor: pointer; color: var(--cf-muted);
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  transition: all .15s;
}
.cf-del-sub:hover { border-color: var(--cf-red); color: var(--cf-red); }


/* ═══════════════════════════════════════════════
   ПИКЕР ГОДА + МЕСЯЦА
═══════════════════════════════════════════════ */
.cf-jump-picker {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 0;
}


/* Год — выпадающий список с прокруткой */
.cf-year-select {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: .88rem; font-weight: 700; letter-spacing: .04em;
  border: 1.5px solid var(--cf-border);
  border-radius: var(--cf-radius);
  background: #f8fcff; color: var(--cf-navy);
  padding: 5px 28px 5px 10px;
  outline: none; cursor: pointer;
  min-width: 82px;
  transition: border-color .15s;
  /* Сохраняем нативную стрелку — пользователь ожидает стандартный dropdown */
}
.cf-year-select:focus { border-color: var(--cf-sky); box-shadow: 0 0 0 3px rgba(91,158,201,.18); }

.cf-jump-year-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cf-jump-year-row .cf-cal-jump-icon { font-size: 1rem; flex-shrink: 0; }



/* Месяц-сетка */
.cf-jump-months {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 3px;
}
.cf-month-cell {
  padding: 5px 2px;
  font-family: 'Roboto Condensed', sans-serif;
  font-size: .75rem; font-weight: 700; letter-spacing: .03em;
  border: 1.5px solid var(--cf-border);
  border-radius: 4px;
  background: #f8fcff; color: var(--cf-navy);
  cursor: pointer; transition: all .15s;
  text-align: center; line-height: 1;
}
.cf-month-cell:hover:not([disabled]) { border-color: var(--cf-sky); background: var(--cf-light); }
.cf-month-cell--active {
  background: var(--cf-orange, #F77F00); color: #fff;
  border-color: var(--cf-orange, #F77F00);
}
.cf-month-cell--past {
  color: #bbb; background: #f5f5f5;
  cursor: default; border-color: #e0e0e0;
}

/* Адаптив: на узких экранах сетка месяцев 4 колонки */
@media (max-width: 600px) {
  .cf-jump-months { grid-template-columns: repeat(4, 1fr); }
  .cf-year-tab    { padding: 5px 10px; font-size: .76rem; }
  .cf-month-cell  { font-size: .7rem; padding: 5px 1px; }
}
@media (max-width: 400px) {
  .cf-jump-months { grid-template-columns: repeat(3, 1fr); }
}


/* ═══════════════════════════════════════════════════
   CREW FINDER — ДВУХКОЛОНОЧНЫЙ ЛЕЙАУТ v1.9
   Монитор: форма (левая) + 2 месяца (правая)
            4 месяца на полную ширину ниже
   Планшет: то же, но форма чуть уже
   Смартфон: один столбец
═══════════════════════════════════════════════════ */

/* ── Основная сетка ── */
.cf-main-layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 24px;
  max-width: 1320px;
  margin: 20px auto 0;
  padding: 0 20px 40px;
  align-items: start;
}

/* Sidebar приклеивается при скролле на десктопе */
.cf-sidebar {
  position: sticky;
  top: 20px;
}

/* Правая колонка: ближние месяцы = 1 в строке */
.cf-calendars-near {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

/* Дальние месяцы: 2 в строке */
.cf-calendars-far {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

/* ── Карточка (форма, мои заявки) ── */
.cf-card {
  background: #fff;
  border-radius: 10px;
  border: 1.5px solid var(--cf-border);
  border-top: 4px solid var(--cf-navy);
  box-shadow: 0 2px 12px rgba(0,48,73,.08);
  overflow: hidden;
}
.cf-card-header {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 18px 12px;
  background: linear-gradient(90deg, #d0e6f4, #e8f2f8);
  border-bottom: 1px solid var(--cf-border);
}
.cf-card-header span { font-size: 1.15rem; }
.cf-card-header h2 {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 1.1rem; font-weight: 700; color: var(--cf-navy);
  text-transform: uppercase; letter-spacing: .04em; margin: 0;
}

/* ── Заголовок секции календаря ── */
.cf-cal-header {
  margin-bottom: 14px;
}
.cf-cal-header .cf-section-header {
  margin-bottom: 10px;
}

/* ── Компактная форма ── */
.cf-compact-form {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cf-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.cf-field > label:first-child,
.cf-field > label.cf-field-label {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: .68rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--cf-muted);
}
.cf-field input[type="text"],
.cf-field input[type="date"],
.cf-field input[type="number"],
.cf-field input[type="email"],
.cf-field input[type="tel"],
.cf-field input[type="password"],
.cf-field textarea,
.cf-field select {
  padding: 8px 10px;
  border: 1.5px solid var(--cf-border);
  border-radius: var(--cf-radius);
  font-family: var(--cf-font); font-size: .88rem;
  color: var(--cf-text); background: #f8fcff;
  outline: none; transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none; width: 100%;
}
.cf-field input:focus,
.cf-field textarea:focus {
  border-color: var(--cf-sky);
  box-shadow: 0 0 0 3px rgba(91,158,201,.18);
}
.cf-field textarea { resize: vertical; min-height: 60px; line-height: 1.5; }

/* Строка из двух полей */
.cf-field-group { display: flex; gap: 10px; }
.cf-field-row2 > .cf-field { flex: 1; }

/* Маленькие инпуты */
.cf-input-sm { max-width: 80px !important; }

/* Чекбоксы/радио в строку */
.cf-inline-checks { display: flex; flex-wrap: wrap; gap: 10px; padding: 4px 0; }
.cf-inline-col    { flex-direction: column; gap: 4px; }

/* ── Роли — кнопки-таблетки ── */
.cf-role-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.cf-role-btn {
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; border: 1.5px solid var(--cf-border);
  border-radius: var(--cf-radius); padding: 6px 4px;
  background: #f8fcff; transition: all .15s;
  text-align: center;
}
.cf-role-btn input { display: none; }
.cf-role-btn span {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: .78rem; font-weight: 700; color: var(--cf-navy);
  text-transform: uppercase; letter-spacing: .04em; line-height: 1.2;
  white-space: nowrap;
}
.cf-role-btn:has(input:checked) {
  border-color: var(--cf-navy);
  background: var(--cf-navy);
}
.cf-role-btn:has(input:checked) span { color: #fff; }
.cf-role-btn:hover:not(:has(input:checked)) { border-color: var(--cf-sky); background: var(--cf-light); }

/* ── Типы похода — компактные плитки ── */
.cf-triptype-compact {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.cf-triptype-btn {
  display: flex; flex-direction: column; align-items: center;
  gap: 2px; padding: 8px 6px;
  border: 1.5px solid var(--cf-border);
  border-radius: var(--cf-radius);
  background: #f8fcff; cursor: pointer;
  transition: all .15s; text-align: center;
}
.cf-triptype-btn input { display: none; }
.cf-tt-icon  { font-size: 1.1rem; line-height: 1; }
.cf-tt-name  {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: .78rem; font-weight: 700; color: var(--cf-navy);
  text-transform: uppercase; letter-spacing: .04em;
}
.cf-tt-desc  { font-size: .65rem; color: var(--cf-muted); line-height: 1.2; }
.cf-triptype-btn:has(input:checked) {
  border-color: var(--cf-sky);
  background: var(--cf-light);
  box-shadow: 0 0 0 2px rgba(91,158,201,.2);
}
.cf-triptype-btn:has(input[value="training"]:checked) { border-color: #F77F00; background: #fff5e6; }
.cf-triptype-btn:has(input[value="practice"]:checked) { border-color: #40C8C0; background: #e6f9f8; }
.cf-triptype-btn:hover:not(:has(input:checked)) { border-color: var(--cf-sky); }

/* Специальные поля (орг, скидка) */
.cf-special-fields { margin-top: 4px; }

/* Кнопка отправки формы */
.cf-btn-submit {
  display: block; width: 100%;
  margin: 0;
  padding: 13px 20px;
  border-radius: 0 0 8px 8px;
  font-size: .92rem;
}

/* ═══════════════════════════════════════════════
   АДАПТИВ — планшет (≤1100px)
═══════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .cf-main-layout {
    grid-template-columns: 300px 1fr;
    gap: 18px;
    padding: 0 14px 30px;
  }
}

/* ═══════════════════════════════════════════════
   АДАПТИВ — планшет портрет / мобильный ≤860px
   Один столбец, но cf-calendars-far остаётся 2 в строке
═══════════════════════════════════════════════ */
@media (max-width: 860px) {
  .cf-main-layout {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 0 12px 24px;
  }
  .cf-sidebar { position: static; }

  /* Порядок блоков на мобильном:
     1. Форма (если залогинен)
     2. Навигация + 2 ближних месяца
     3. 4 дальних месяца
     4. Легенда
     5. Мои заявки */
  .cf-sidebar  { order: 1; }
  .cf-main-col { order: 2; }

  .cf-calendars-near { grid-template-columns: 1fr; }
  .cf-calendars-far  { grid-template-columns: 1fr 1fr; }

  .cf-role-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ═══════════════════════════════════════════════
   СМАРТФОН ≤520px
   Все в один столбец, мелкие корректировки
═══════════════════════════════════════════════ */
@media (max-width: 520px) {
  .cf-main-layout { padding: 0 8px 20px; gap: 12px; }

  .cf-calendars-far  { grid-template-columns: 1fr; }
  .cf-role-grid { grid-template-columns: repeat(2, 1fr); }
  .cf-triptype-compact { grid-template-columns: 1fr; }

  .cf-field-group { flex-direction: column; gap: 8px; }

  .cf-card-header h2 { font-size: 1rem; }
  .cf-compact-form { padding: 10px 12px; gap: 10px; }
  .cf-btn-submit { font-size: .85rem; padding: 12px 16px; }
}


/* Обычные: по типу похода */
/* синий — круиз и все прочие некоммерческие */
/* зелёный (ярк.) — практика */
/* = cruise (fallback) */
/* Специальные */
/* зелёный — некоммерческий орг. */
/* оранжевый — обучение */
/* оранжевый — коммерческий орг. */
/* красный — коммерч. со скидкой */

/* Стили выбора типа похода */
.cf-triptype-group  { display: flex; flex-wrap: wrap; gap: 10px; }
.cf-triptype-radio  {
    display: flex; flex-direction: column; gap: 3px;
    padding: 10px 14px; border: 1.5px solid var(--cf-border);
    border-radius: var(--cf-radius); cursor: pointer;
    background: #f8fcff; transition: all .15s; min-width: 130px;
}
.cf-triptype-radio:has(input:checked) {
    border-color: var(--cf-sky);
    background: var(--cf-light);
    box-shadow: 0 0 0 2px rgba(91,158,201,.2);
}
.cf-triptype-label { font-family: 'Roboto Condensed',sans-serif; font-size:.9rem; font-weight:700; color:var(--cf-navy); }
.cf-triptype-desc  { font-size:.72rem; color:var(--cf-muted); font-style:italic; line-height:1.3; }

/* Строка «коммерческий со скидкой» */
.cf-commercial-discount-row { margin-top: 4px; }
.cf-commercial-disc-check {
    display: flex; align-items: center; gap: 8px;
    font-size: .95rem; cursor: pointer; font-weight: 600;
}
.cf-commercial-disc-check input[type="checkbox"] {
    width: 18px; height: 18px; cursor: pointer; accent-color: #D62828; flex-shrink: 0;
}
.cf-commercial-disc-label { color: #842029; }

/* ── Кнопки в карточке «Мои заявки» ── */
.cf-my-trip-btns {
    display: flex; flex-direction: column; gap: 6px; flex-shrink: 0;
}
.cf-edit-trip {
    background: none; border: 1.5px solid var(--cf-sky); color: var(--cf-sky);
    border-radius: var(--cf-radius); padding: 5px 12px; cursor: pointer;
    font-size: .78rem; font-weight: 700; font-family: 'Roboto Condensed', sans-serif;
    transition: all .15s; white-space: nowrap;
}
.cf-edit-trip:hover { background: var(--cf-sky); color: #fff; }

/* ── Кнопка «N заявок» в ячейке (>4) ── */
.cf-day-count-btn {
    display: flex; align-items: center; justify-content: center;
    height: calc(2 * 22px + 2px); /* высота 2 бейджей */
    background: #483D8B;
    color: #FFFFFF;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 1.3rem; font-weight: 700;
    cursor: pointer;
    transition: background .15s; line-height: 1;
    border-radius: 3px; margin-top: 2px;
    border: none; width: 100%;
}
.cf-day-count-btn:hover { background: #3a3070; color: #FFFFFF; }

/* ── Широкий модал ── */
.cf-modal-box--wide { max-width: 760px; }

/* ── Таблица заявок на дату ── */
.cf-dt-table {
    width: 100%; border-collapse: collapse;
    font-size: .85rem; margin-top: 4px;
}
.cf-dt-table thead th {
    background: var(--cf-navy); color: #fff;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: .72rem; letter-spacing: .08em;
    text-transform: uppercase; padding: 8px 10px;
    text-align: left; white-space: nowrap;
}
.cf-dt-table thead th:first-child { border-radius: 4px 0 0 0; }
.cf-dt-table thead th:last-child  { border-radius: 0 4px 0 0; }
.cf-dt-row {
    cursor: pointer; transition: background .12s;
    border-bottom: 1px solid var(--cf-border);
}
.cf-dt-row:nth-child(even) { background: var(--cf-bg); }
.cf-dt-row:hover { background: var(--cf-light) !important; }
.cf-dt-row td {
    padding: 9px 10px; vertical-align: middle;
    color: var(--cf-text); line-height: 1.35;
}
.cf-dt-dates { white-space: nowrap; color: var(--cf-muted); font-size: .8rem; }
.cf-dt-badge {
    display: inline-block; padding: 2px 7px;
    border-radius: 3px; font-size: .75rem;
    font-family: 'Roboto Condensed', sans-serif; font-weight: 700;
    color: #fff; border: 1px solid rgba(0,0,.1);
    margin-right: 4px; white-space: nowrap;
}
.cf-dt-tag {
    display: inline-block; font-size: .65rem;
    font-family: 'Roboto Condensed', sans-serif; font-weight: 700;
    padding: 1px 5px; border-radius: 3px; vertical-align: middle;
}
.cf-dt-tag--org   { background: #d6f2e6; color: #1a6a3a; border: 1px solid #50C878; }
.cf-dt-tag--org-c { background: #fff0de; color: #a05000; border: 1px solid #F77F00; }
.cf-dt-hint {
    font-size: .75rem; color: var(--cf-muted);
    text-align: center; margin-top: 10px; font-style: italic;
}
@media (max-width: 600px) {
    .cf-modal-box--wide { max-width: 100%; }
    .cf-dt-table { font-size: .78rem; }
    .cf-dt-row td { padding: 7px 6px; }
    .cf-dt-table th:nth-child(4),
    .cf-dt-table td:nth-child(4),
    .cf-dt-table th:nth-child(5),
    .cf-dt-table td:nth-child(5) { display: none; }
}

/* ═══════════════════════════════════════════════
   CREW FINDER — Стили в палитре time2sail.ru
   Цвета: navy #003049, orange #F77F00, red #D62828
═══════════════════════════════════════════════ */

:root {
  --cf-navy:    #003049;
  --cf-navy2:   #1A4A6E;
  --cf-navy3:   #0a2240;
  --cf-orange:  #F77F00;
  --cf-red:     #D62828;
  --cf-sky:     #5B9EC9;
  --cf-light:   #E8F4FD;
  --cf-green:   #1a7a4a;
  --cf-green-bg:#d6f2e6;
  --cf-text:    #1a2535;
  --cf-muted:   #5a6e80;
  --cf-border:  #c8dff0;
  --cf-bg:      #F0F7FF;
  --cf-radius:  6px;
  --cf-shadow:  0 4px 18px rgba(0,48,73,.12);
  --cf-font:    'Roboto', 'Roboto Condensed', sans-serif;
}

.cf-app { font-family: var(--cf-font); color: var(--cf-text); }
.cf-hidden { display: none !important; }

/* ── КНОПКИ ── */
.cf-btn-primary {
  display: inline-block; padding: 11px 26px;
  background: var(--cf-red); color: #fff;
  font-family: 'Roboto Condensed', sans-serif; font-weight: 700;
  font-size: .88rem; text-transform: uppercase; letter-spacing: .06em;
  border: none; border-radius: var(--cf-radius); cursor: pointer;
  transition: background .15s; text-decoration: none;
}
.cf-btn-primary:hover { background: #b81f1f; color: #fff; }
.cf-btn-primary.cf-btn-lg { padding: 13px 36px; font-size: .95rem; }

.cf-btn-outline {
  display: inline-block; padding: 10px 22px;
  background: transparent; color: var(--cf-orange);
  font-family: 'Roboto Condensed', sans-serif; font-weight: 700;
  font-size: .82rem; text-transform: uppercase; letter-spacing: .05em;
  border: 1.5px solid var(--cf-orange); border-radius: var(--cf-radius);
  cursor: pointer; transition: all .15s; text-decoration: none;
}
.cf-btn-outline:hover { background: var(--cf-orange); color: var(--cf-navy); }
.cf-btn-outline.cf-btn-sm { padding: 6px 14px; font-size: .75rem; }

.cf-link-btn {
  background: none; border: none; color: var(--cf-sky);
  font-size: .82rem; cursor: pointer; text-decoration: underline;
}

/* ── МОДАЛЬНЫЕ ОКНА ── */
.cf-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,30,50,.82);
  z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  padding: 16px; overflow-y: auto;
}
.cf-modal-box {
  background: #fff; border-radius: 8px;
  border-top: 4px solid var(--cf-orange);
  padding: 28px 24px; max-width: 520px; width: 100%;
  position: relative; box-shadow: 0 12px 40px rgba(0,0,0,.35);
  max-height: 90vh; overflow-y: auto;
  margin: auto;
}
.cf-modal-box--sm { max-width: 400px; }
.cf-modal-close {
  position: absolute; top: 12px; right: 14px;
  background: none; border: none; font-size: 1.1rem;
  color: var(--cf-muted); cursor: pointer; line-height: 1;
}
.cf-modal-close:hover { color: var(--cf-red); }
.cf-modal-header { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.cf-modal-icon { font-size: 1.8rem; }
.cf-modal-header h2 {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 1.35rem; font-weight: 700; color: var(--cf-navy);
  text-transform: uppercase; letter-spacing: .04em; margin: 0;
}
.cf-modal-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

.cf-tos-text { font-size: .9rem; color: #2a2a2a; line-height: 1.7; }
.cf-tos-text p { margin-bottom: 10px; }

/* ── ФОРМЫ ── */
.cf-form-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
.cf-form-row { display: flex; flex-direction: column; gap: 5px; }
.cf-form-row.cf-full { grid-column: 1 / -1; }
.cf-form-row label {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: .72rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--cf-muted);
}
.cf-form-row input[type="text"],
.cf-form-row input[type="email"],
.cf-form-row input[type="tel"],
.cf-form-row input[type="date"],
.cf-form-row input[type="password"],
.cf-form-row input[type="number"],
.cf-form-row input[type="month"],
.cf-form-row textarea {
  padding: 9px 12px;
  border: 1.5px solid var(--cf-border);
  border-radius: var(--cf-radius);
  font-family: var(--cf-font); font-size: .9rem;
  color: var(--cf-text); background: #f8fcff;
  outline: none; transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none;
}
.cf-form-row input:focus,
.cf-form-row textarea:focus {
  border-color: var(--cf-sky);
  box-shadow: 0 0 0 3px rgba(91,158,201,.18);
}
.cf-form-row textarea { resize: vertical; min-height: 72px; }

.cf-radio-group, .cf-check-group {
  display: flex; flex-wrap: wrap; gap: 10px; padding: 4px 0;
}
.cf-radio, .cf-check {
  display: flex; align-items: center; gap: 6px;
  font-size: .88rem; cursor: pointer;
}

/* Алерты */
.cf-alert { padding: 10px 14px; border-radius: var(--cf-radius); margin-bottom: 12px; font-size: .88rem; }
.cf-alert-err { background: #fde8e6; border: 1.5px solid #D62828; color: #8a1515; }
.cf-alert-ok  { background: var(--cf-green-bg); border: 1.5px solid #1a7a4a; color: #0a4a25; }



/* ── СЕКЦИИ ── */

.cf-section-header {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; margin-bottom: 18px;
  background: linear-gradient(90deg, #d0e6f4, #e8f2f8);
  border: 1px solid var(--cf-border); border-left: 4px solid var(--cf-navy);
  border-radius: 0 var(--cf-radius) var(--cf-radius) 0;
}
.cf-section-header span { font-size: 1.2rem; }
.cf-section-header h2 {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 1.25rem; font-weight: 700; color: var(--cf-navy);
  text-transform: uppercase; letter-spacing: .04em; margin: 0;
}

.cf-trip-grid { grid-template-columns: 1fr 1fr; }
@media (max-width: 600px) {
  .cf-form-grid, .cf-trip-grid { grid-template-columns: 1fr; }
  .cf-form-row.cf-full { grid-column: 1; }
  
}

/* ── МОИ ЗАЯВКИ ── */
.cf-my-trip-card {
  background: var(--cf-light); border: 1.5px solid var(--cf-border);
  border-left: 4px solid var(--cf-orange); border-radius: var(--cf-radius);
  padding: 14px 18px; margin-bottom: 10px;
  display: flex; justify-content: space-between; align-items: flex-start; gap: 12px;
  flex-wrap: wrap;
}
.cf-my-trip-info { font-size: .88rem; line-height: 1.65; }
.cf-my-trip-info strong { font-family: 'Roboto Condensed', sans-serif; font-size: .95rem; color: var(--cf-navy); }
.cf-del-trip {
  background: none; border: 1.5px solid var(--cf-red); color: var(--cf-red);
  border-radius: var(--cf-radius); padding: 5px 12px; cursor: pointer;
  font-size: .78rem; font-weight: 700; font-family: 'Roboto Condensed', sans-serif;
  flex-shrink: 0; transition: all .15s;
}
.cf-del-trip:hover { background: var(--cf-red); color: #fff; }

/* ── НАВИГАЦИЯ КАЛЕНДАРЯ ── */
.cf-cal-nav {
  display: flex; align-items: center; gap: 10px;
  flex-wrap: wrap; margin-bottom: 16px;
  padding: 0 0 4px;
}
.cf-cal-nav-btn {
  background: var(--cf-navy); color: #fff;
  border: none; border-radius: var(--cf-radius);
  padding: 8px 14px; cursor: pointer;
  font-size: 1rem; transition: background .15s;
}
.cf-cal-nav-btn:hover { background: var(--cf-navy2); }




/* Легенда */
.cf-legend {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-bottom: 14px; min-height: 0; transition: min-height .2s;
}
.cf-legend-item {
  display: flex; align-items: center; gap: 6px;
  font-size: .78rem; font-family: 'Roboto Condensed', sans-serif;
}
.cf-legend-dot {
  width: 12px; height: 12px; border-radius: 50%;
  border: 1px solid rgba(0,0,0,.15);
}

/* ── ШЕСТЬ МЕСЯЦЕВ: 2 колонки × 3 строки ── */
.cf-calendars {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
}
@media (max-width: 700px) {
  .cf-calendars { grid-template-columns: 1fr; }
}

.cf-cal-month {
  background: #fff; border-radius: 8px;
  border: 1.5px solid var(--cf-border);
  box-shadow: var(--cf-shadow); overflow: hidden;
  min-height: 320px;
  display: flex; flex-direction: column;
}
.cf-cal-title {
  background: var(--cf-navy);
  color: #fff; text-align: center;
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 1.05rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; padding: 10px 16px;
  flex-shrink: 0;
}
.cf-cal-grid {
  flex: 1;
  display: grid; grid-template-columns: repeat(7, 1fr);
  gap: 0;
}
.cf-cal-dow {
  text-align: center; padding: 6px 2px;
  font-family: 'Roboto Condensed', sans-serif;
  font-size: .7rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--cf-muted);
  background: var(--cf-bg); border-bottom: 1px solid var(--cf-border);
}
.cf-cal-day {
  min-height: 64px; padding: 4px 5px;
  border-right: 1px solid #e8f0f8; border-bottom: 1px solid #e8f0f8;
  vertical-align: top; position: relative;
}
.cf-cal-day:nth-child(7n) { border-right: none; }
.cf-cal-day.cf-day-empty { background: #fafcff; }
.cf-cal-day.cf-day-past  { background: #f5f5f5; }
.cf-cal-day.cf-day-today { background: #fffbe6; outline: 2px solid var(--cf-orange); outline-offset: -2px; }
.cf-day-num {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: .78rem; font-weight: 700; color: var(--cf-muted);
  margin-bottom: 3px; display: block;
}
.cf-day-today .cf-day-num { color: var(--cf-orange); }
.cf-day-past  .cf-day-num { color: #ccc; }

/* Бейджи участников в ячейке */
.cf-day-entries { display: flex; flex-direction: column; gap: 2px; }
.cf-entry-badge {
  display: inline-block; padding: 2px 5px;
  border-radius: 3px; font-size: .7rem; font-weight: 700;
  font-family: 'Roboto Condensed', sans-serif;
  cursor: pointer; transition: opacity .15s; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; max-width: 100%;
  color: #fff; border: 1px solid rgba(0,0,0,.15);
}
.cf-entry-badge:hover { opacity: .82; }

/* Палитра цветов для участников */
/* ── Пометка обязательного поля ── */
.cf-label-req {
  font-size: .7rem; color: var(--cf-muted);
  font-weight: 400; font-style: italic; letter-spacing: 0;
  text-transform: none;
}

/* ── Поле бюджета ── */
.cf-budget-wrap {
  display: flex; align-items: center; gap: 8px;
}
.cf-budget-input {
  width: 140px; padding: 9px 12px;
  border: 1.5px solid var(--cf-border); border-radius: var(--cf-radius);
  font-family: var(--cf-font); font-size: .9rem; color: var(--cf-text);
  background: #f8fcff; outline: none;
  transition: border-color .2s, box-shadow .2s;
  -moz-appearance: textfield;
}
.cf-budget-input::-webkit-inner-spin-button,
.cf-budget-input::-webkit-outer-spin-button { -webkit-appearance: none; }
.cf-budget-input:focus {
  border-color: var(--cf-sky);
  box-shadow: 0 0 0 3px rgba(91,158,201,.18);
}
.cf-budget-currency {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: .95rem; font-weight: 700; color: var(--cf-navy);
}
.cf-field-hint {
  font-size: .74rem; color: var(--cf-muted);
  margin: 5px 0 0; font-style: italic; line-height: 1.4;
}

/* ── Иконка в поле перехода к месяцу ── */
.cf-cal-jump-icon {
  font-size: 1.15rem; flex-shrink: 0;
}

/* Организатор — зелёный (некоммерческий) */
/* Коммерческий организатор — оранжевый */
/* ── Модал организатора ── */
.cf-modal-box--org { max-width: 580px; }

.cf-org-notice {
  border-radius: var(--cf-radius); padding: 14px 16px;
  margin-bottom: 18px; font-size: .88rem; line-height: 1.65;
}
.cf-org-notice--info {
  background: #e8f7ee; border: 1.5px solid #50C878; color: #1a4a2a;
}
.cf-org-notice--info em { color: #c05000; font-style: normal; font-weight: 600; }

.cf-org-price-row {
  display: flex; flex-wrap: wrap; gap: 16px; align-items: center;
}
.cf-org-price-item {
  display: flex; align-items: center; gap: 6px;
}
.cf-org-price-label {
  font-size: .78rem; color: var(--cf-muted); white-space: nowrap;
}

.cf-org-yesno-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px;
}
.cf-org-amount-wrap {
  display: flex; align-items: center; gap: 6px;
}
.cf-cur-select {
  padding: 8px 10px; border: 1.5px solid var(--cf-border);
  border-radius: var(--cf-radius); font-size: .88rem;
  background: #f8fcff; color: var(--cf-text); outline: none;
  cursor: pointer;
}
.cf-cur-select:focus { border-color: var(--cf-sky); }

/* ── Блок условий в попапе детали ── */
.cf-org-detail-block {
  margin-top: 16px; padding-top: 14px;
  border-top: 2px solid var(--cf-border);
}
.cf-org-detail-title {
  font-family: 'Roboto Condensed', sans-serif; font-size: .85rem;
  font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  color: var(--cf-navy); margin-bottom: 10px;
}

/* ── Легенда цветов под календарём ── */
.cf-color-legend {
  display: flex; flex-direction: column; gap: 8px;
  margin-top: 18px; padding: 14px 18px;
  background: #f8fcff; border: 1.5px solid var(--cf-border);
  border-radius: var(--cf-radius);
}
/* 2-column legend layout */
.cf-color-legend--2col {
  flex-direction: row; gap: 0; align-items: flex-start;
}
.cf-legend-col {
  flex: 1; display: flex; flex-direction: column; gap: 7px;
  padding: 0 12px;
}
.cf-legend-col:first-child { padding-left: 0; border-right: 1.5px solid var(--cf-border); }
.cf-legend-col:last-child  { padding-right: 0; }
.cf-color-legend-item {
  display: flex; align-items: center; gap: 10px;
  font-size: .85rem; color: var(--cf-text); line-height: 1.4;
}
.cf-color-legend-dot {
  width: 14px; height: 14px; border-radius: 50%;
  border: 1px solid rgba(0,0,0,.15); flex-shrink: 0;
}
/* Purpose radio group */
.cf-purpose-group { flex-direction: column; gap: 8px; }
.cf-purpose-radio { font-size: .92rem; }

.cf-color-0  { background: #1a4a7a; }
.cf-organizer-row { margin-top: 4px; }
.cf-organizer-check {
  display: flex; align-items: center; gap: 8px;
  font-size: .95rem; cursor: pointer; font-weight: 600;
}
.cf-organizer-check input[type="checkbox"] {
  width: 18px; height: 18px; cursor: pointer; accent-color: #50C878;
  flex-shrink: 0;
}
.cf-organizer-label { color: #1a6a3a; }
.cf-organizer-hint {
  font-size: .75rem; color: var(--cf-muted);
  margin: 4px 0 0 26px; font-style: italic;
}

/* Обычные участники — всегда синий */
/* Старые классы → голубой (как cruise) */
.cf-color-0  { background: #0000FF; }
.cf-color-1  { background: #0000FF; }
.cf-color-2  { background: #0000FF; }
.cf-color-3  { background: #0000FF; }
.cf-color-4  { background: #0000FF; }
.cf-color-5  { background: #0000FF; }
.cf-color-6  { background: #0000FF; }
.cf-color-7  { background: #0000FF; }
.cf-color-8  { background: #0000FF; }
.cf-color-9  { background: #0000FF; }

.cf-cal-hint {
  font-size: .78rem; color: var(--cf-muted);
  text-align: center; margin-top: 12px; margin-bottom: 0;
}

/* ── ДЕТАЛИ ЗАЯВКИ ── */
.cf-trip-detail h3 {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 1.2rem; color: var(--cf-navy); font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em; margin: 0 0 14px;
}
.cf-trip-detail-rows { display: flex; flex-direction: column; gap: 8px; }
.cf-trip-detail-row { display: flex; gap: 10px; font-size: .88rem; }
.cf-trip-detail-label {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: var(--cf-muted);
  white-space: nowrap; min-width: 110px;
}
.cf-trip-detail-val { color: var(--cf-text); line-height: 1.5; }
.cf-contact-link { color: var(--cf-sky); font-weight: 600; text-decoration: none; }
.cf-contact-link:hover { color: var(--cf-orange); }

/* ── LOGIN PROMPT ── */
.cf-login-prompt {
  background: var(--cf-light); border: 1.5px solid var(--cf-border);
  border-left: 4px solid var(--cf-sky);
  border-radius: var(--cf-radius); padding: 14px 18px;
  font-size: .88rem; display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}

/* ── ТОСТ ── */
.cf-toast {
  position: fixed; bottom: 20px; right: 16px; z-index: 99999;
  background: #fff; border: 1.5px solid var(--cf-border);
  border-left: 4px solid var(--cf-green);
  border-radius: var(--cf-radius); padding: 11px 16px;
  font-size: .88rem; color: var(--cf-text);
  box-shadow: 0 4px 18px rgba(0,0,0,.15);
  transform: translateX(120%); transition: transform .3s ease; max-width: 300px;
}
.cf-toast.cf-toast-show { transform: translateX(0); }
.cf-toast.cf-toast-err  { border-left-color: var(--cf-red); }

/* ── СПИННЕР ── */
.cf-spinner {
  width: 20px; height: 20px;
  border: 3px solid rgba(255,255,255,.3);
  border-top-color: #fff; border-radius: 50%;
  animation: cf-spin .7s linear infinite; display: inline-block;
  vertical-align: middle;
}
@keyframes cf-spin { to { transform: rotate(360deg); } }

@media (max-width: 480px) {
  
  
  .cf-modal-box { padding: 20px 14px; }
  .cf-cal-nav { gap: 6px; }
  .cf-cal-day { min-height: 48px; }
}

/* 2-column legend → stack on narrow screens */
@media (max-width: 560px) {
  .cf-color-legend--2col { flex-direction: column; }
  .cf-legend-col:first-child { border-right: none; border-bottom: 1.5px solid var(--cf-border); padding: 0 0 10px; }
  .cf-legend-col:last-child  { padding: 10px 0 0; }
}

/* ════════════════════════════════════════════
   v3.0 — ВКЛАДКИ ТУРЫ / КАЛЕНДАРЬ
════════════════════════════════════════════ */
.cf-view-tabs {
  display: flex; gap: 0; margin-bottom: 20px;
  border-bottom: 2px solid var(--cf-border);
}
.cf-view-tab {
  padding: 10px 24px; cursor: pointer;
  font-family: 'Roboto Condensed', sans-serif;
  font-size: .95rem; font-weight: 600; letter-spacing: .03em;
  background: transparent; border: none;
  color: var(--cf-muted); border-bottom: 3px solid transparent;
  transition: color .2s, border-color .2s;
}
.cf-view-tab:hover { color: var(--cf-navy); }
.cf-view-tab--active {
  color: var(--cf-navy); border-bottom-color: var(--cf-accent);
}

/* ════════════════════════════════════════════
   ВИЗУАЛЬНАЯ ВКЛАДКА ТУРОВ — карточки
════════════════════════════════════════════ */
.cf-tours-view { padding: 0; }
.cf-tours-empty { text-align: center; padding: 40px; color: var(--cf-muted); font-style: italic; }

.cf-tours-month { margin-bottom: 28px; }
.cf-tours-month-title {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 1.1rem; font-weight: 700; color: var(--cf-navy);
  text-transform: uppercase; letter-spacing: .06em;
  margin: 0 0 14px; padding-bottom: 6px;
  border-bottom: 1.5px solid var(--cf-border);
}

/* Сетка карточек */
.cf-tours-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* ── Карточка тура ── */
.cf-tour-card {
  background: var(--cf-card-bg); border-radius: 12px;
  border: 1px solid var(--cf-border);
  cursor: pointer; overflow: hidden;
  transition: box-shadow .2s, transform .15s;
  display: flex; flex-direction: column;
}
.cf-tour-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,.14);
  transform: translateY(-2px);
}

/* Картинка с флагом */
.cf-tour-card-img-wrap {
  position: relative; width: 100%;
  aspect-ratio: 5/3; overflow: hidden;
  background: linear-gradient(135deg, #e8f0fe, #d4e4f7);
}
.cf-tour-card-img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.cf-tour-card-img--placeholder {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #e8f0fe, #d4e4f7);
}
.cf-yacht-silhouette {
  width: 70%; height: auto; opacity: .5;
  object-fit: contain;
}

/* Флаг — левый верхний угол, ≤13% площади (~50×50) */
.cf-tour-card-flag {
  position: absolute; top: 6px; left: 6px;
  font-size: 2rem; line-height: 1;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,.3));
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
}

/* Тело карточки */
.cf-tour-card-body {
  padding: 10px 12px 12px;
  display: flex; flex-direction: column; gap: 3px; flex: 1;
}
.cf-tour-dates { font-weight: 700; color: var(--cf-navy); font-size: .9rem; }
.cf-tour-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: .8rem; color: var(--cf-muted); }
.cf-tour-type { font-size: .8rem; font-weight: 600; color: var(--cf-muted); }
.cf-tour-price { font-weight: 700; color: #2d8a4e; font-size: .88rem; }
.cf-tour-org { font-size: .8rem; color: var(--cf-muted); }
.cf-tour-comment {
  font-size: .78rem; color: #5a6e80; line-height: 1.35;
  max-height: 2.7em; overflow: hidden; text-overflow: ellipsis;
}

/* ── Карточка ищущего — круглый портрет ── */
.cf-tour-card--seeking {
  background: var(--cf-hover);
  border: 1px dashed var(--cf-border);
  align-items: center;
}
.cf-tour-seeking-portrait-wrap {
  display: flex; align-items: center; justify-content: center;
  padding: 16px 0 4px;
}
.cf-tour-seeking-portrait {
  width: 120px; height: 120px; max-width: 350px; max-height: 350px;
  border-radius: 50%; object-fit: cover;
  border: 3px solid var(--cf-border);
}
.cf-tour-seeking-portrait--initials {
  display: flex; align-items: center; justify-content: center;
  background: var(--cf-navy); color: #fff;
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 2.2rem; font-weight: 700;
}
.cf-tour-card--seeking .cf-tour-card-body { text-align: center; }
.cf-tour-seeking-label {
  color: #4B0082; font-weight: 700; font-style: italic; font-size: .85rem;
}

/* ── Свёрнутая форма (мобильные/планшеты) ── */
.cf-form-collapsed {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; font-weight: 700; font-size: .95rem;
  color: var(--cf-navy);
}
.cf-form-collapsed .cf-btn-primary { margin-left: auto; }
.cf-form-collapse-btn {
  margin-left: auto; font-size: 1rem; padding: 2px 8px;
}

/* ── Кнопка индивидуального подбора ── */
.cf-btn-accent {
  background: linear-gradient(135deg, #1a5276, #2980b9);
  color: #fff; border: none; border-radius: 8px;
  padding: 12px 20px; font-size: .92rem; font-weight: 700;
  cursor: pointer; transition: opacity .2s;
}
.cf-btn-accent:hover { opacity: .88; }

/* ── Вкладка-ссылка ── */
.cf-view-tab--link {
  text-decoration: none; color: var(--cf-muted);
}
.cf-view-tab--link:hover { color: var(--cf-navy); }

/* ── Фото загрузки в модалках ── */
.cf-trip-photo-upload {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.cf-trip-photo-preview { min-height: 40px; }
.cf-trip-photo-preview img { border: 1px solid var(--cf-border); }
.cf-btn-danger {
  background: #D62828; color: #fff; border: none; border-radius: 6px;
  padding: 4px 10px; cursor: pointer; font-size: .78rem;
}
.cf-btn-danger:hover { background: #b01e1e; }

/* ── Фото в модалке детали ── */
.cf-trip-photos {
  display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap;
}
.cf-trip-detail-photo {
  max-width: 200px; max-height: 150px; border-radius: 8px; object-fit: cover;
  border: 1px solid var(--cf-border);
}

/* ── Планшет: 3 карточки ── */
@media (max-width: 1024px) {
  .cf-tours-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .cf-view-tab { padding: 8px 14px; font-size: .85rem; }
}
/* ── Телефон: 2 карточки ── */
@media (max-width: 600px) {
  .cf-tours-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .cf-view-tab { padding: 7px 10px; font-size: .78rem; }
  .cf-tour-card-body { padding: 8px 10px; }
  .cf-tour-dates { font-size: .82rem; }
}

/* ════════════════════════════════════════════
   VIP — ИНДИВИДУАЛЬНЫЙ ПОДБОР ТУРА
════════════════════════════════════════════ */
.cf-modal-box--vip {
  background: linear-gradient(170deg, #0b1d32 0%, #122a47 40%, #183656 100%);
  border-top: 3px solid #c9a84c;
  color: #e8e4da;
  border-radius: 14px;
  padding: 0;
  max-width: 580px;
  box-shadow: 0 20px 60px rgba(0,0,0,.5), inset 0 1px 0 rgba(201,168,76,.15);
}
.cf-modal-box--vip .cf-modal-close {
  color: rgba(201,168,76,.6);
  font-size: 1.4rem; top: 16px; right: 18px;
}
.cf-modal-box--vip .cf-modal-close:hover { color: #c9a84c; }

/* VIP шапка */
.cf-vip-header {
  text-align: center; padding: 32px 28px 20px;
  border-bottom: 1px solid rgba(201,168,76,.2);
  background: linear-gradient(180deg, rgba(201,168,76,.08) 0%, transparent 100%);
}
.cf-vip-icon {
  font-size: 2.6rem; margin-bottom: 8px;
  filter: drop-shadow(0 2px 8px rgba(201,168,76,.35));
}
.cf-vip-header h2 {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 1.4rem; font-weight: 700;
  color: #c9a84c; letter-spacing: .08em;
  text-transform: uppercase; margin: 0 0 8px;
}
.cf-vip-subtitle {
  font-size: .85rem; line-height: 1.5;
  color: rgba(232,228,218,.65); margin: 0;
  max-width: 420px; margin-inline: auto;
}

/* VIP форма */
.cf-vip-form {
  padding: 24px 28px 10px;
}
.cf-vip-row {
  margin-bottom: 16px;
}
.cf-vip-row--2col {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
.cf-vip-field {
  display: flex; flex-direction: column; gap: 5px;
}
.cf-vip-field label {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: .72rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: #c9a84c;
}
.cf-vip-field input,
.cf-vip-field textarea {
  background: rgba(255,255,255,.07);
  border: 1.5px solid rgba(201,168,76,.3);
  border-radius: 8px;
  padding: 11px 14px;
  font-size: .92rem;
  color: #f0ece2;
  font-family: inherit;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.cf-vip-field input::placeholder,
.cf-vip-field textarea::placeholder {
  color: rgba(232,228,218,.3);
}
.cf-vip-field input:focus,
.cf-vip-field textarea:focus {
  outline: none;
  border-color: #c9a84c;
  background: rgba(255,255,255,.12);
  box-shadow: 0 0 0 3px rgba(201,168,76,.15);
}
.cf-vip-field textarea {
  resize: vertical; min-height: 60px;
}

/* VIP кнопка */
.cf-vip-actions {
  padding: 6px 28px 28px;
  text-align: center;
}
.cf-vip-submit {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, #c9a84c, #d4b95f, #c9a84c);
  color: #0b1d32;
  border: none; border-radius: 10px;
  padding: 14px 36px;
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 1rem; font-weight: 800;
  letter-spacing: .06em; text-transform: uppercase;
  cursor: pointer;
  transition: transform .15s, box-shadow .2s;
  box-shadow: 0 4px 16px rgba(201,168,76,.3);
}
.cf-vip-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(201,168,76,.45);
}
.cf-vip-submit:active { transform: translateY(0); }

.cf-vip-note {
  margin: 14px 0 0;
  font-size: .73rem;
  color: rgba(232,228,218,.35);
  letter-spacing: .03em;
}

/* VIP alert */
.cf-modal-box--vip .cf-alert-err {
  background: rgba(214,40,40,.2);
  border: 1px solid rgba(214,40,40,.5);
  color: #ff8a8a;
  margin: 0 28px 10px; border-radius: 6px; padding: 8px 12px;
  font-size: .85rem;
}

/* VIP mobile */
@media (max-width: 600px) {
  .cf-modal-box--vip { max-width: 100%; }
  .cf-vip-header { padding: 24px 20px 16px; }
  .cf-vip-form { padding: 18px 20px 8px; }
  .cf-vip-row--2col { grid-template-columns: 1fr; }
  .cf-vip-actions { padding: 6px 20px 24px; }
  .cf-vip-submit { width: 100%; justify-content: center; padding: 13px 20px; }
}

/* ════════════════════════════════════════════
   v3.1.0 — РАСПИСАНИЕ ЯХТ-ШКОЛЫ
════════════════════════════════════════════ */
.cf-school-row {
  background: #fff8e1;
  border: 1.5px solid #c9a227;
  border-radius: var(--cf-radius, 6px);
  padding: 10px 12px;
}
.cf-school-check {
  display: flex; align-items: center; gap: 8px;
  font-weight: 700; color: #7a5a00; cursor: pointer;
  font-size: .9rem; margin: 0;
}
.cf-school-check input { accent-color: #c9a227; width: 17px; height: 17px; flex-shrink: 0; }
.cf-school-title-wrap { margin-top: 8px; }
.cf-school-title-wrap input { width: 100%; box-sizing: border-box; }
.cf-school-row .cf-field-hint { margin-top: 6px; }

.cf-school-badge {
  display: inline-block;
  background: #c9a227; color: #1a1a1a;
  font-size: .7rem; font-weight: 700;
  padding: 1px 7px; border-radius: 10px;
  white-space: nowrap; vertical-align: middle;
}

/* Лента на карточке тура — правый верхний угол */
.cf-tour-school-ribbon {
  position: absolute; top: 8px; right: 8px;
  background: rgba(0,48,73,.88); color: #FFD54F;
  border: 1px solid #c9a227;
  font-size: .7rem; font-weight: 700;
  padding: 3px 8px; border-radius: 12px;
  letter-spacing: .02em;
  box-shadow: 0 1px 4px rgba(0,0,0,.25);
}
.cf-tour-school-title {
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: 700; font-size: .88rem;
  color: #7a5a00; margin: 2px 0 4px;
}
@media (max-width: 600px) {
  .cf-tour-school-ribbon { font-size: .62rem; padding: 2px 6px; top: 6px; right: 6px; }
}

/* ════════════════════════════════════════════
   v3.2.0 — КАРТОЧКИ ТУРОВ: ПОСТЕР 9:16
════════════════════════════════════════════ */
.cf-tour-card--poster {
  padding: 0; border: none; background: #0b1d32;
  border-radius: 14px; box-shadow: 0 2px 10px rgba(0,30,60,.12);
}
.cf-tour-card--poster:focus-visible { outline: 3px solid var(--cf-orange, #F77F00); outline-offset: 2px; }
.cf-tc-frame {
  position: relative; width: 100%;
  aspect-ratio: 9 / 16; overflow: hidden;
  background: linear-gradient(160deg, #123a5c, #0b1d32);
}
.cf-tc-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 35%;
  display: block; z-index: 1;
  transition: transform .4s ease;
}
.cf-tour-card--poster:hover .cf-tc-img { transform: scale(1.04); }
/* Размытая подложка — видна только в режиме «вписать» */
.cf-tc-blur {
  position: absolute; inset: -20px; z-index: 0;
  background-size: cover; background-position: center;
  filter: blur(18px) brightness(.65) saturate(1.1);
  opacity: 0;
}
.cf-tc--fit .cf-tc-blur { opacity: 1; }
.cf-tc--fit .cf-tc-img  {
  object-fit: contain; object-position: center 30%;
  height: 70%; /* пропорции сохраняются, нижняя часть остаётся под текст */
}
.cf-tour-card--poster:hover .cf-tc--fit .cf-tc-img { transform: none; }
.cf-tc-placeholder {
  position: absolute; inset: 0; z-index: 1;
  display: flex; align-items: flex-start; justify-content: center;
  padding-top: 22%;
  background: linear-gradient(160deg, #e8f0fe, #b8d0ea);
}
.cf-tc-placeholder .cf-yacht-silhouette { width: 78%; opacity: .45; }
.cf-tour-card--poster .cf-tour-card-flag { z-index: 3; }
.cf-tc-type {
  position: absolute; top: 10px; right: 10px; z-index: 3;
  background: rgba(255,255,255,.92); color: var(--cf-navy, #003049);
  font-family: 'Roboto Condensed', sans-serif;
  font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  padding: 3px 9px; border-radius: 12px;
  max-width: 60%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cf-tc-overlay {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 48px 12px 12px;
  background: linear-gradient(to top, rgba(4,18,32,.94) 0%, rgba(4,18,32,.78) 55%, rgba(4,18,32,0) 100%);
  color: #fff;
  display: flex; flex-direction: column; gap: 3px;
}
.cf-tc-school {
  align-self: flex-start;
  background: #c9a227; color: #1a1a1a;
  font-size: .64rem; font-weight: 700;
  padding: 2px 8px; border-radius: 10px; margin-bottom: 3px;
}
.cf-tc-dates {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: .78rem; font-weight: 700; letter-spacing: .03em;
  color: #FFD27A;
}
.cf-tc-title {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 1.05rem; font-weight: 700; line-height: 1.2;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.cf-tc-meta {
  font-size: .74rem; color: rgba(255,255,255,.78); line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.cf-tc-foot {
  display: flex; align-items: baseline; justify-content: space-between; gap: 6px;
  margin-top: 4px; padding-top: 6px; border-top: 1px solid rgba(255,255,255,.18);
}
.cf-tc-price { font-size: .8rem; color: #9FE3B4; }
.cf-tc-price b { font-size: 1rem; color: #fff; }
.cf-tc-seats { font-size: .74rem; color: rgba(255,255,255,.8); white-space: nowrap; }
.cf-tc-org { font-size: .72rem; color: rgba(255,255,255,.7); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Карточка «ищу место» в одной сетке с постерами */
.cf-tour-card--seeking { justify-content: center; }

@media (max-width: 600px) {
  .cf-tc-overlay { padding: 36px 8px 8px; gap: 2px; }
  .cf-tc-title { font-size: .88rem; }
  .cf-tc-meta  { font-size: .66rem; -webkit-line-clamp: 1; }
  .cf-tc-dates { font-size: .68rem; }
  .cf-tc-price b { font-size: .86rem; }
  .cf-tc-type { font-size: .6rem; padding: 2px 6px; top: 6px; right: 6px; }
  .cf-tc-org { display: none; }
  .cf-tour-card--poster .cf-tour-card-flag { font-size: 1.5rem; width: 34px; height: 34px; }
}

/* Детали: вертикальные фото */
.cf-trip-detail-photo { max-width: 46%; max-height: 300px; }
.cf-detail-tour-title { color: var(--cf-orange, #F77F00); margin-bottom: 2px; }

/* Превью картинок в формах */
.cf-photo-thumb {
  display: block; width: 90px; height: 160px; object-fit: cover;
  border-radius: 8px; border: 1px solid var(--cf-border);
  background: #f2f6fa;
}
.cf-photo-warn { display: block; max-width: 220px; margin-top: 4px; font-size: .72rem; color: #a05000; }
.cf-photo-req-hint {
  background: #eef6ff; border-left: 3px solid var(--cf-sky, #5B9EC9);
  padding: 6px 10px; border-radius: 4px; color: var(--cf-navy, #003049);
}
.cf-photo-section--alert { animation: cf-photo-alert 1.2s ease 2; border-radius: 8px; }
@keyframes cf-photo-alert { 0%,100% { box-shadow: none; } 50% { box-shadow: 0 0 0 3px #D62828; } }

/* Блок полей TIME TO SAIL TRAVEL */
.cf-tts-title {
  font-family: 'Roboto Condensed', sans-serif; font-size: .8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em; color: var(--cf-navy, #003049);
  margin-bottom: 10px;
}
.cf-tts-title .cf-optional { text-transform: none; letter-spacing: 0; font-size: .75rem; }
.cf-tts-card { margin-top: 16px; }
.cf-btn-tts { background: linear-gradient(135deg, #003049, #0f5a7a) !important; border-color: #003049 !important; }
.cf-export-trip {
  background: #003049; color: #FFD27A; border: none; border-radius: 6px;
  padding: 5px 10px; font-size: .75rem; font-weight: 700; cursor: pointer;
}
.cf-export-trip:hover { background: #0f5a7a; }
.cf-export-steps { margin: 10px 0 16px 18px; line-height: 1.6; font-size: .88rem; }
.cf-export-done .cf-btn-tts { display: inline-block; text-decoration: none; }

/* v3.2.1: «Ищу место в экипаже» — крупно и заметно */
.cf-tour-card--seeking .cf-tour-seeking-label {
  display: inline-block; margin-top: 10px;
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 1.25rem; font-weight: 800; font-style: normal;
  text-transform: uppercase; letter-spacing: .03em; line-height: 1.15;
  color: #fff; background: #4B0082;
  padding: 8px 14px; border-radius: 10px;
  box-shadow: 0 2px 8px rgba(75,0,130,.3);
}
@media (max-width: 600px) {
  .cf-tour-card--seeking .cf-tour-seeking-label { font-size: .95rem; padding: 6px 10px; }
}
