.chuuk-calculator {
  font-family: var(--font-text);
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 20px 40px;
  background: transparent;
}


/* ===== ВЕРХНИЙ СИНИЙ БЛОК ===== */

.chuuk-hero {
  background: var(--chuuk-navy);
  padding: 0 20px 40px;
}

.chuuk-hero__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.chuuk-header {
  text-align: center;
  margin: 42px 0 26px;
}


.chuuk-title {
  font-family: var(--font-display);
  font-size: 38px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -.02em;
  color: #fff;
  margin: 0 auto 12px;
  max-width: 760px;
}


.chuuk-subtitle {
  font-size: 16px;
  color: rgba(255, 255, 255, .7);
}


/* Строка поиска: поля идут слитно одним белым блоком с тонкими
   разделителями, кнопка стоит отдельно справа — ровно как
   «Куда / Когда / Найти билеты» у Авиасейлс */
.chuuk-search {
  display: flex;
  align-items: stretch;
  gap: 10px;
  padding: 0;
  background: transparent;
  border-radius: 0;
}

/* overflow тут держать НЕЛЬЗЯ: выпадающие списки и календарь
   висят внутри полей и обрезались бы строкой. Скругление
   поэтому не на всей строке, а на крайних полях. */
/* Поля первого экрана — отдельными облаками, а не одной слитной
   строкой. На телефоне так было с решения 175, владелец попросил
   то же самое на компьютере: «не слитной, а из нескольких сильно
   скруглённых облаков». Фон теперь у каждого поля, не у строки. */
.info-row {
  display: flex;
  justify-content: space-between;
  background: transparent;
  padding: 0;
  border-radius: 0;
  margin-bottom: 0;
  flex: 1;
  flex-wrap: nowrap;
  gap: 10px;
  overflow: visible;
}


.info-item {
  flex: 1;
  min-width: 0;
  position: relative;
  padding: 15px 20px;
  background: #fff;
  /* Углы мягче обычных: поле должно читаться как отдельная
     кнопка-облако, а не как ячейка таблицы */
  border-radius: 22px;
  cursor: pointer;
  transition: background .15s, transform .15s;
}

/* Пока список раскрыт, низ поля «квадратный»: иначе между полем
   и выехавшим списком получается ступенька из-за скругления */
.info-item.is-open {
  border-radius: 22px 22px 0 0;
}

/* Разделителей между полями больше нет — между ними зазор */

.info-item:hover {
  background: #fbfcfd;
}


.info-label {
  font-size: 12px;
  color: var(--chuuk-muted);
  text-transform: none;
  font-weight: 400;
  margin-bottom: 2px;
}


.info-value {
  font-size: 16px;
  font-weight: 500;
  color: var(--chuuk-ink);
  background: transparent;
  cursor: pointer;
  padding: 0 18px 0 0;
  border-radius: 0;
  border: none;
  position: relative;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


.info-value:hover {
  background: transparent;
  border-color: transparent;
}


.info-value::after {
  content: '▾';
  position: absolute;
  right: 2px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  color: var(--chuuk-muted-light);
}


/* Список примыкает к полю одним куском: без скруглений сверху,
   без рамки и без внутренней прокрутки — раньше он обрезался
   на середине и выглядел оборванным */
/* Список — прямоугольник ровно по ширине поля, без скруглений
   и зазора: он должен читаться как продолжение самого поля */
/* Список продолжает поле: сверху стыкуется с ним встык, снизу
   закругляется так же, как облако. Без этого у списка оставались
   острые нижние углы, а поле над ним — круглое. */
.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: none;
  border-radius: 0 0 22px 22px;
  box-shadow: 0 12px 28px rgba(3, 39, 63, .16);
  z-index: 100;
  /* Скругление обрезает фон последнего пункта при наведении */
  overflow: hidden;
  padding: 0 0 6px;
}


.dropdown-option {
  padding: 12px 18px;
  cursor: pointer;
  border-bottom: none;
  font-size: 15px;
  color: var(--chuuk-ink);
  transition: background 0.15s;
}


.dropdown-option:hover {
  background: var(--chuuk-surface-soft);
}


.calendar {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  /* Рамку сняли, скругление — как у облака: календарь выпадает
     из поля и должен читаться его продолжением, а не чужой
     серой коробкой с углами в 5 точек */
  border: none;
  border-radius: 0 0 22px 22px;
  box-shadow: 0 12px 28px rgba(3, 39, 63, .16);
  z-index: 100;
  padding: 18px 15px 15px;

  /* Шире обычного: под числом стоит полная сумма сметы за этот день,
     и она должна помещаться целиком, без сокращений */
  min-width: 448px;
  max-width: 448px;
}

/* На узком экране календарь становится окном по центру.
   Иначе он привязан к полю, а поле смещено — и календарь с ценами
   уезжает за край экрана. */
@media (max-width: 560px) {
  .calendar {
    position: fixed;
    top: 50%;
    left: 50%;
    right: auto;
    transform: translate(-50%, -50%);

    min-width: 0;
    width: calc(100vw - 20px);
    max-width: 420px;

    max-height: 82vh;
    overflow-y: auto;

    padding: 14px 10px;
    z-index: 1000;
  }

  .calendar-grid { gap: 2px; }
}


.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding: 0 5px;
}


.calendar-nav {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  padding: 5px 10px;
  color: #03273f;
  border-radius: 3px;
  transition: background 0.2s;
}


.calendar-nav:hover {
  background: #f0f0f0;
}


.calendar-nav:disabled {
  color: #ccc;
  cursor: not-allowed;
}


.calendar-nav:disabled:hover {
  background: transparent;
}


.calendar-month {
  font-weight: bold;
  color: #03273f;
  font-size: 14px;
  text-align: center;
  flex: 1;
}


.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  text-align: center;
}


.calendar-day {
  padding: 8px 4px;
  text-align: center;
  cursor: pointer;
  border-radius: 3px;
  transition: background 0.2s;
  font-size: 12px;
  min-height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}


.calendar-day:hover {
  background: #f0f0f0;
}

/* === ЦЕНА ПОД ЧИСЛОМ ===
   Показываем, во сколько обойдётся смета, если выбрать этот день.
   Число сверху, цена мельче под ним — как в поиске билетов. */
.calendar-day.has-price {
  flex-direction: column;
  gap: 2px;
  min-height: 42px;
  line-height: 1.1;
  padding: 6px 2px;
}

/* Сумма пишется целиком: «94 234 ₽», без сокращений.
   Поэтому шрифт мелкий, а перенос запрещён. */
.calendar-day__price {
  font-size: 10px;
  font-weight: 700;
  color: #667085;
  white-space: nowrap;
}

@media (max-width: 520px) {
  .calendar-day__price { font-size: 9px; }
  .calendar-day.has-price { padding: 6px 1px; }
}

/* На выбранном и подсвеченных днях цена не должна теряться */
.calendar-day.selected .calendar-day__price { color: rgba(255, 255, 255, .85); }
.calendar-day.available-soon .calendar-day__price { color: #a8641a; }
.calendar-day.available .calendar-day__price { color: #12805c; }


.calendar-day.selected {
  background: #03273f;
  color: white;
}


.calendar-day.today {
  background: #fff3cd;
  color: #03273f;
  font-weight: bold;
}


.calendar-day.disabled {
  color: #ccc;
  cursor: not-allowed;
  background: #f8f9fa;
}


.calendar-day.disabled:hover {
  background: #f8f9fa;
  color: #ccc;
}


.calendar-day.other-month {
  color: #ccc;
  cursor: default;
}


.calendar-day.other-month:hover {
  background: transparent;
}


.calendar-weekday {
  padding: 8px 4px;
  text-align: center;
  font-weight: bold;
  color: #666;
  font-size: 11px;
}


.chuuk-content {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}


.chuuk-settings {
  flex: 1;
  min-width: 300px;
}

.settings-group {
  margin-bottom: 30px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 10px;
  position: relative;
}


.settings-title {
  font-size: 16px;
  font-weight: bold;
  color: #03273f;
  margin-bottom: 15px;
  text-transform: uppercase;
}


.option-row {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  padding: 8px 0;
}


.option-label {
  flex: 1;
  font-size: 14px;
  color: #333;
}


.option-control {
  display: flex;
  gap: 10px;
  align-items: center;
}


.radio-option {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}


.radio-circle {
  width: 20px;
  height: 20px;
  border: 2px solid #03273f;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  /* Переходов здесь нет намеренно. Сначала стояло `transition: all`,
     потом только цвета — и в обоих случаях переход залипал: класс
     `selected` на элементе стоял, а закрашиваться он не успевал,
     пока страница занята пересчётом. Владелец видел это как
     «выбор не отмечается». Отметка обязана появляться в тот же миг,
     что и цифра в оффере, поэтому красим без анимации. */
}


.radio-circle.selected {
  background: #03273f;
  border-color: #03273f;
}


.radio-circle.selected::after {
  content: '';
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
}


.switch-option {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}


.switch-box {
  width: 20px;
  height: 20px;
  border: 2px solid #03273f;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  /* Без перехода — см. коммент у .radio-circle */
}


.switch-box.selected {
  background: #03273f;
  border-color: #03273f;
}


.switch-box.selected::after {
  content: '✓';
  color: white;
  font-size: 12px;
  font-weight: bold;
}


.days-hours-controls {
  display: flex;
  gap: 30px;
  margin-bottom: 20px;
}


.control-group {
  flex: 1;
}


.control-title {
  font-size: 14px;
  color: #666;
  margin-bottom: 10px;
  text-transform: uppercase;
  font-weight: bold;
}


.hours-control, .days-control {
  display: flex;
  align-items: center;
  gap: 15px;
  justify-content: center;
}


.control-btn {
  width: 40px;
  height: 40px;
  font-size: 20px;
  font-weight: bold;
  background: #03273f;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}


.control-btn:hover {
  background: #021c2e;
}


.control-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
}


.control-display {
  font-size: 24px;
  font-weight: bold;
  color: #03273f;
  min-width: 60px;
  text-align: center;
  padding: 10px 20px;
  background: white;
  border: 2px solid #03273f;
  border-radius: 8px;
}


.hint-text {
  font-size: 12px;
  color: #666;
  text-align: center;
  margin-top: 5px;
}


.days-schedule {
  margin-top: 20px;
  padding: 15px;
  background: white;
  border: 1px solid #ddd;
  border-radius: 8px;
}


.day-block {
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}


.day-block:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}


.day-header {
  font-weight: bold;
  color: #03273f;
  margin-bottom: 10px;
  font-size: 14px;
}


.day-hours-control {
  display: flex;
  align-items: center;
  gap: 10px;
}


.day-hours-btn {
  width: 30px;
  height: 30px;
  font-size: 16px;
  background: #03273f;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}


.day-hours-display {
  font-size: 16px;
  font-weight: bold;
  color: #03273f;
  min-width: 40px;
  text-align: center;
  padding: 5px 10px;
  background: white;
  border: 1px solid #03273f;
  border-radius: 5px;
}


.rolls-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 15px;
}


.rolls-title-section {
  display: flex;
  align-items: center;
  gap: 15px;
  flex: 1;
  min-width: 200px;
}


.rolls-control {
  display: flex;
  align-items: center;
  gap: 15px;
}


.rolls-btn {
  width: 35px;
  height: 35px;
  font-size: 18px;
  background: #03273f;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}


.rolls-display {
  font-size: 18px;
  font-weight: bold;
  color: #03273f;
  min-width: 50px;
  text-align: center;
  padding: 8px 15px;
  background: white;
  border: 2px solid #03273f;
  border-radius: 6px;
}


.chronometry-title {
  font-size: 14px;
  color: #666;
  margin-bottom: 15px;
  text-transform: uppercase;
  font-weight: bold;
}


.rolls-duration {
  margin-top: 5px;
}


.roll-duration-block {
  margin-bottom: 15px;
  padding: 15px;
  background: white;
  border: 1px solid #ddd;
  border-radius: 8px;
}

.duration-hint {
  font-size: 11px;
  color: #666;
  margin-left: 5px;
  font-style: italic;
}


.option-counter {
  display: none;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  margin-left: 30px;
}


.counter-btn {
  width: 30px;
  height: 30px;
  font-size: 16px;
  background: #03273f;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}


.counter-display {
  font-size: 16px;
  font-weight: bold;
  color: #03273f;
  min-width: 40px;
  text-align: center;
  padding: 5px 10px;
  background: white;
  border: 1px solid #03273f;
  border-radius: 5px;
}


.interview-options, .team-options {
  display: none;
  margin-top: 15px;
  padding: 15px;
  background: white;
  border: 1px solid #ddd;
  border-radius: 8px;
}


.interview-hint {
  font-size: 12px;
  color: #666;
  margin-top: 10px;
  font-style: italic;
  line-height: 1.4;
}


.team-member {
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}


.team-member:last-child {
  margin-bottom: 0;
  border-bottom: none;
}


.team-member-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
}


.team-member-title {
  font-weight: bold;
  color: #03273f;
  font-size: 14px;
}


.team-controls {
  display: flex;
  gap: 20px;
  margin-top: 10px;
  flex-wrap: wrap;
}


.team-control-group {
  display: flex;
  align-items: center;
  gap: 10px;
}


.team-control-label {
  font-size: 12px;
  color: #666;
  min-width: 60px;
}


.retouch-disabled {
  opacity: 0.5;
  pointer-events: none;
}


.retouch-disabled .switch-box {
  background: #ccc;
  border-color: #ccc;
}


.retouch-disabled .switch-box.selected::after {
  color: #999;
}


.price-main {
  text-align: center;
  margin-bottom: 20px;
}

/* ===== PACKAGE SWITCH (Лайт / Pro) ===== */

.package-switch{
  display:flex;
  justify-content:center;
  gap:8px;
  margin-bottom:12px;
}

.package-pill{
  padding:6px 14px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.35);
  cursor:pointer;
  font-size:13px;
  user-select:none;
  opacity:.6;
  transition:all .2s;
}

.package-pill:hover{
  opacity:.85;
}

.package-pill.active{
  opacity:1;
  font-weight:700;
  background:rgba(255,255,255,.15);
}

.package-pill.disabled{
  opacity:.25;
  pointer-events:none;
}

.price-amount {
  font-size: 48px;
  font-weight: bold;
  margin: 20px 0;
}


.price-description {
  font-size: 16px;
  opacity: 0.9;
  margin-bottom: 30px;
}


.price-features {
  text-align: left;
  margin-bottom: 20px;
}


.feature-item {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  font-size: 14px;
}


.feature-check {
  color: #4CAF50;
  margin-right: 10px;
  font-weight: bold;
}


.price-options {
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 20px;
  margin-top: 20px;
}


.option-price-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 14px;
  opacity: 0.9;
}


.option-price-item:last-child {
  margin-bottom: 0;
}


.discount-badge {
  background: #4CAF50;
  color: white;
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 14px;
  margin-top: 15px;
  display: inline-block;
  width: 100%;
  text-align: center;
  box-sizing: border-box;
}


.team-day-schedule {
  margin-top: 15px;
  padding: 15px;
  background: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  display: none;
}


.comment-section {
  margin-top: 15px;
}


.comment-textarea {
  width: 100%;
  min-height: 100px;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: 'Arial', sans-serif;
  font-size: 14px;
  resize: vertical;
  box-sizing: border-box;
}


.comment-hint {
  font-size: 12px;
  color: #666;
  margin-top: 5px;
  font-style: italic;
  line-height: 1.4;
}


.people-counter {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}


.people-counter-label {
  font-size: 12px;
  color: #666;
  min-width: 80px;
}


.people-counter-btn {
  width: 25px;
  height: 25px;
  font-size: 14px;
  background: #03273f;
  color: white;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}


.people-counter-display {
  font-size: 14px;
  font-weight: bold;
  color: #03273f;
  min-width: 30px;
  text-align: center;
  padding: 3px 8px;
  background: white;
  border: 1px solid #03273f;
  border-radius: 4px;
}


.contract-payment-group {
  display: flex;
  gap: 30px;
  margin-top: 10px;
}


.contract-section, .payment-section {
  flex: 1;
}


.payment-hint {
  font-size: 11px;
  color: #666;
  margin-top: 5px;
  font-style: italic;
  line-height: 1.3;
}


.people-controls-row {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 10px;
}


.people-controls-compact {
  display: flex;
  align-items: center;
  gap: 8px;
}


.people-controls-compact .people-counter-label {
  min-width: auto;
  font-size: 11px;
}


.people-controls-compact .people-counter-btn {
  width: 22px;
  height: 22px;
  font-size: 12px;
}


.people-controls-compact .people-counter-display {
  font-size: 12px;
  min-width: 25px;
  padding: 2px 6px;
}


.payment-warning {
  font-size: 11px;
  color: #666;
  margin-top: 5px;
  font-style: italic;
  line-height: 1.3;
}


.option-disabled {
  opacity: 0.5;
  pointer-events: none;
}


.calendar-day.unavailable {
  background: #f8f9fa;
  color: #ccc;
  cursor: not-allowed;
}


.calendar-day.unavailable-red {
  background: #ffebee;
  color: #c62828;
  cursor: not-allowed;
}


.calendar-day.available-soon {
  background: #fff3e0;
  color: #ef6c00;
  cursor: pointer;
}


.calendar-day.available {
  background: #e8f5e8;
  color: #2e7d32;
  cursor: pointer;
}


.calendar-day.available:hover {
  background: #c8e6c9;
}


.calendar-day.available.selected {
  background: #03273f;
  color: white;
}


.calendar-day.available-soon.selected {
  background: #03273f;
  color: white;
}


.date-range-calendar {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 101;
  background: white;
  border: 1px solid #ddd;
  border-radius: 5px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding: 15px;
}


.date-range-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
}


.date-range-section {
  flex: 1;
  padding: 0 10px;
}


.date-range-label {
  font-size: 12px;
  color: #666;
  margin-bottom: 5px;
  font-weight: bold;
}


.calendar-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 15px;
  gap: 10px;
}


.calendar-btn {
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.2s;
}


.calendar-btn-primary {
  background: #03273f;
  color: white;
}


.calendar-btn-primary:hover {
  background: #021c2e;
}


.calendar-btn-secondary {
  background: #f8f9fa;
  color: #03273f;
  border: 1px solid #ddd;
}


.calendar-btn-secondary:hover {
  background: #e9ecef;
}


.calendar-btn-reset {
  background: #f8f9fa;
  color: #d32f2f;
  border: 1px solid #ddd;
}


.calendar-btn-reset:hover {
  background: #ffebee;
}


.calendar-legend {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 10px;
  font-size: 10px;
  flex-wrap: wrap;
}


.legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
}


.legend-color {
  width: 12px;
  height: 12px;
  border-radius: 2px;
}


.legend-color.available-soon {
  background: #fff3e0;
}


.legend-color.available {
  background: #e8f5e8;
}


.legend-color.unavailable-red {
  background: #ffebee;
}


.legend-color.selected {
  background: #03273f;
}


.team-count-badge {
  background: #4CAF50;
  color: white;
  border-radius: 10px;
  padding: 2px 8px;
  font-size: 12px;
  margin-left: 5px;
}


.location-container {
  display: flex;
  gap: 20px;
  margin-top: 15px;
}


.location-left {
  flex: 1;
}


.location-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}


.location-btn {
  padding: 10px 15px;
  background: #03273f;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  text-align: center;
}


.location-display {
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  background: white;
  display: none;
}


.location-edit {
  display: flex;
  align-items: center;
  gap: 10px;
}


.location-edit input {
  flex: 1;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
}


.location-edit-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  color: #03273f;
  padding: 5px;
}


/* Кнопка в строке поиска. Пока не заполнены все поля —
   приглушённая, как только можно считать — оранжевая. */
.quick-start-btn {
  flex: 0 0 auto;
  min-height: 62px;
  background: rgba(255, 255, 255, .22);
  color: rgba(255, 255, 255, .65);
  border: none;
  padding: 0 32px;
  border-radius: 12px;
  font-family: var(--font-text);
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  margin: 0;
  display: block;
  transition: background .25s, color .25s;
}


.quick-start-btn.active {
  background: var(--chuuk-accent);
  color: #fff;
  box-shadow: none;
}

.quick-start-btn.active:hover {
  background: #f08a00;
}


.settings-section {
  display: none;
}


/* Блок «Как это работает» из трёх шагов убран по просьбе владельца.
   Вместо него — три окна (игра, шаги, маршрут): разметка
   .chuuk-landing в index.html, стили в css/ui.css */


.map-container {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}


.map-content {
  background: white;
  padding: 20px;
  border-radius: 10px;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
}


.map-placeholder {
  width: 100%;
  height: 300px;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
  border-radius: 5px;
}


.map-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}


.location-selected {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  background: white;
  margin-top: 10px;
}


.location-text {
  flex: 1;
  font-size: 14px;
  color: #03273f;
}


.location-edit-icon {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  color: #03273f;
  padding: 5px;
}


.location-reset-btn {
  background: #f8f9fa;
  color: #d32f2f;
  border: 1px solid #ddd;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
}


.location-reset-btn:hover {
  background: #ffebee;
}


.time-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}


.time-label {
  font-size: 12px;
  color: #666;
  min-width: 80px;
}


.time-select {
  padding: 5px 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  background: white;
}


.time-display {
  font-size: 12px;
  color: #666;
  margin-top: 5px;
  font-style: italic;
}


.time-hint {
  font-size: 12px;
  color: #6b7280;
  margin-top: 6px;
  margin-bottom: 4px;
  line-height: 1.35;
}


.days-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 15px;
  padding: 10px;
  background: #f8f9fa;
  border-radius: 5px;
}


.days-count {
  font-size: 14px;
  color: #03273f;
  font-weight: bold;
}


.total-time {
  font-size: 14px;
  color: #666;
}


.main-time-controls {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 15px;
  padding: 15px;
  background: white;
  border: 1px solid #ddd;
  border-radius: 8px;
}


.main-time-label {
  font-size: 14px;
  color: #03273f;
  font-weight: bold;
  min-width: 120px;
}


.main-time-select {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  background: white;
}


.main-time-display {
  font-size: 14px;
  color: #666;
  font-style: italic;
}


.time-picker-container {
  display: flex;
  align-items: center;
  gap: 10px;
}


.time-picker {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  background: white;
}


@media (max-width: 768px) {
  .chuuk-content {
    flex-direction: column;
  }
  
  .chuuk-title {
    font-size: 28px;
  }
  
  .price-amount {
    font-size: 36px;
  }
  
  .info-row {
    flex-direction: column;
  }
  
  .days-hours-controls {
    flex-direction: column;
    gap: 20px;
  }
  
  /* Календарь на узком экране настраивается выше, в блоке
     @media (max-width: 560px): там он становится окном по центру.
     Прежние left/right: -50% растягивали его за края экрана, когда
     под датами появились полные суммы. */
  
  .chuuk-price-card {
    flex: 1;
    position: relative;
  }
  
  .rolls-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .rolls-title-section {
    width: 100%;
    justify-content: space-between;
  }
  
  .team-controls {
    flex-direction: column;
    gap: 10px;
  }
  
  .team-day-schedule {
    padding: 10px;
  }
  
  .contract-payment-group {
    flex-direction: column;
    gap: 20px;
  }
  
  .date-range-calendar {
    min-width: auto;
    max-width: none;
    left: -100%;
    right: -100%;
  }
  
  .calendar-legend {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
  
  .location-container {
    flex-direction: column;
  }
  
  .time-controls {
    flex-direction: column;
    align-items: flex-start;
  }
  
  /* Часы, двоеточие и минуты — ВСЕГДА в строку. Раньше здесь стояло
     flex-direction: column, и на телефоне «18 : 20» разъезжалось
     на три этажа: время читалось как три отдельных поля. */
  .main-time-controls {
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 12px;
  }

  .main-time-label { min-width: 0; }

  .time-picker-container {
    flex-direction: row;
    align-items: center;
    gap: 6px;
  }

  .main-time-display { width: 100%; }
}
/* === AUTH BAR === */
/* Шапка внутри синего блока: слева логотип, справа профиль */
.auth-bar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 18px 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

/* Логотип — единственное место с фирменным начертанием
   в самом жирном весе */
.chuuk-logo {
  margin-right: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

/* Клавиша слегка проседает при наведении — тот же жест,
   что и в заставке на входе */
.chuuk-logo__key {
  width: 30px;
  height: auto;
  flex-shrink: 0;
  transition: transform .18s ease;
}

.chuuk-logo:hover .chuuk-logo__key {
  transform: translateY(2px);
}

.chuuk-logo__name {
  /* Единственное место фирменного YS Text Wide: заголовки
     переведены на системный, логотип остался своим */
  font-family: var(--font-logo);
  font-weight: 900;
  font-size: 24px;
  letter-spacing: -.01em;
  color: #fff;
}

/* Кнопка админки стоит рядом с логотипом, вход — у правого края.
   Оформление берёт у .auth-btn, чтобы шапка выглядела цельно. */
.auth-bar > #adminPanelBtn {
  margin-right: 0;
}

.auth-bar > #adminPanelBtn button {
  font-family: inherit;
}

.auth-status {
  font-size: 13px;
  color: rgba(255, 255, 255, .75);
}

.auth-status:empty {
  display: none;
}

/* === ВОЗВРАТ К НЕДОДЕЛАННОЙ СМЕТЕ === */
.resume-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin: 0 0 20px;
  padding: 16px 20px;
  border-radius: 16px;
  background: #eaf2fb;
  border: 1px solid #d3e3f5;
}

.resume-bar[hidden] {
  display: none;
}

.resume-bar__text {
  font-size: 14px;
  color: #03273f;
  line-height: 1.5;
}

.resume-bar__text span {
  display: block;
  color: #667085;
  margin-top: 2px;
}

.resume-bar__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.resume-bar__btn {
  border: 1px solid #c3d6ea;
  background: #fff;
  color: #03273f;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.resume-bar__btn--yes {
  background: #03273f;
  border-color: #03273f;
  color: #fff;
}

.resume-bar__btn--yes:hover {
  background: #05395c;
}

/* === НАЗВАНИЕ ПРОЕКТА В КАЛЬКУЛЯТОРЕ === */
.project-name-row {
  margin-bottom: 20px;
}

.project-name-row[hidden] {
  display: none;
}

.project-name-row label {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #667085;
  font-weight: 700;
  margin-bottom: 8px;
}

.project-name-row input {
  width: 100%;
  /* Без border-box поле шириной 100% прибавляет к себе отступы
     и рамку — на телефоне оно вылезало за экран и утаскивало
     за собой весь калькулятор: страницу можно было сдвинуть вбок,
     и справа открывалась пустота. Глобально border-box включать
     нельзя, поэтому точечно. */
  box-sizing: border-box;
  padding: 13px 16px;
  border: 1px solid #dbe2ea;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  color: #03273f;
  font-family: inherit;
}

.project-name-row input:focus {
  outline: none;
  border-color: #3a6ff7;
}

.offer-panel__empty {
  padding: 20px 18px;
  font-size: 13px;
  line-height: 1.5;
  color: #cbd5e1;
  text-align: center;
}

.offer-panel__empty[hidden] {
  display: none;
}

/* Плашка под строкой поиска. Стоит на синем фоне, поэтому
   не зелёная пилюля, а спокойная строка светлым по тёмному. */
.chuuk-verified-note {
  display: block;
  margin-top: 16px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(255, 255, 255, .55);
  font-size: 13px;
  font-weight: 400;
  text-align: center;
}

/* === МЕТКИ НА КАРТОЧКЕ ПРЕДЛОЖЕНИЯ === */
.offer-card-meta {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  align-items: center;
  padding: 8px 4px 0;
  max-width: 100%;

  /* Карточка — колонка с space-between, без этого метки сплющивает в ноль */
  flex-shrink: 0;
  min-height: 26px;
}

/* В узкой карточке метки должны быть мелкими */
.offer-card-meta .chuuk-badge {
  font-size: 10px;
  padding: 3px 8px;
}


/* === ПЛАШКА ПРО КУКИ === */
/* === ПЛАШКА ПРО КУКИ ===
   Короткая светлая карточка внизу по центру, а не тёмная полоса
   во всю ширину: та занимала низ экрана и читалась как рекламный
   баннер. Одна фраза, две ссылки, кнопка «Окей» и крестик. */

.cookie-bar {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 99998;
  display: flex;
  align-items: center;
  gap: 16px;
  width: max-content;
  max-width: calc(100vw - 32px);
  padding: 14px 18px;
  border-radius: 16px;
  background: #fbfaf7;
  color: #14212b;
  box-shadow: 0 14px 40px rgba(3, 39, 63, 0.22);
}

.cookie-bar[hidden] {
  display: none;
}

.cookie-bar__text {
  font-size: 15px;
  line-height: 1.45;
}

.cookie-bar__text a {
  color: #14212b;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-bar__text a:hover { color: #2f6ae0; }

/* Крестик в своём кружке над плашкой, слева — так он не спорит
   с кнопкой «Окей» и не теряется на светлом фоне */
.cookie-bar__x {
  position: absolute;
  left: -10px;
  top: -18px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #14212b;
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(3, 39, 63, 0.28);
}

.cookie-bar__x:hover { background: #2f6ae0; }
.cookie-bar__x:focus-visible { outline: 3px solid #2f6ae0; outline-offset: 2px; }

.cookie-bar__btn {
  border: none;
  border-radius: 12px;
  padding: 11px 22px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.cookie-bar__btn--yes {
  background: #14212b;
  color: #fff;
}

.cookie-bar__btn--yes:hover { background: #2f6ae0; }

@media (max-width: 560px) {
  .cookie-bar {
    left: 12px;
    right: 12px;
    bottom: 14px;
    transform: none;
    width: auto;
    flex-wrap: wrap;
    gap: 12px;
  }

  .cookie-bar__text { flex: 1 1 100%; font-size: 14px; }
  .cookie-bar__btn { flex: 1; }
}

/* === МЕНЮ ПРОФИЛЯ В ШАПКЕ === */
.profile-menu-wrap {
  position: relative;
}

/* Синий кружок — есть новое событие */
.profile-dot {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #3a6ff7;
  border: 2px solid #fff;
  pointer-events: none;
}

.profile-dot[hidden] {
  display: none;
}

.profile-dropdown__item {
  position: relative;
}

.profile-dropdown__item.has-unread::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #3a6ff7;
}

.profile-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 1000;
  min-width: 260px;
  padding: 10px;
  background: #fff;
  border-radius: 20px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 20px 50px rgba(3, 39, 63, 0.16);
}

.profile-dropdown[hidden] {
  display: none;
}

.profile-dropdown__item {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  color: #03273f;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.profile-dropdown__item:hover {
  background: #f2f6fa;
}

/* «Весь кабинет» — не пункт меню, а выход из короткого списка.
   Поэтому мельче и без жирного: пять пунктов над ним должны
   читаться первыми. */
.profile-dropdown__all {
  display: block;
  margin-top: 4px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--chuuk-muted-light, #98a5b6);
  text-decoration: none;
  border-radius: 10px;
}

.profile-dropdown__all:hover {
  background: #f4f7fb;
  color: var(--chuuk-ink, #03273f);
}

.profile-dropdown__foot {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #eef1f4;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.profile-dropdown__foot[hidden] {
  display: none;
}

.profile-dropdown__exit,
.profile-dropdown__login,
.profile-dropdown__signup {
  width: 100%;
  padding: 12px 14px;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.profile-dropdown__exit,
.profile-dropdown__login {
  background: #f2f4f7;
  color: #03273f;
}

.profile-dropdown__exit:hover,
.profile-dropdown__login:hover {
  background: #e6e9ee;
}

.profile-dropdown__signup {
  background: #ff9800;
  color: #fff;
}

.profile-dropdown__signup:hover {
  background: #f08f00;
}

@media (max-width: 768px) {
  .profile-dropdown {
    right: 0;
    min-width: 240px;
  }
}

/* Кнопка в шапке. Шапка тёмная, поэтому кнопка светлая —
   иначе синий текст на синем фоне не читается. */
.auth-btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: var(--r-pill);
  text-decoration: none;
  cursor: pointer;
  font-family: var(--font-text);
  font-size: 14px;
  font-weight: 500;
  color: #fff !important;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .28);
  transition: background .2s;
}

.auth-btn:hover {
  background: rgba(255, 255, 255, .22);
}

.auth-msg {
  margin-top: 6px;
  font-size: 14px;
}

.link-btn {
  background: none;
  border: none;
  color: #555;
  cursor: pointer;
  text-decoration: underline;
}

/* === TODAY TIME WINDOW STATES === */
.calendar-day.unavailable-blue {
  background: #e3f2fd;   /* светло-синий */
  color: #1565c0;
  cursor: not-allowed;
}

.calendar-day.unavailable-blue:hover {
  background: #e3f2fd;
}

/* легенда */
.legend-color.unavailable-blue {
  background: #e3f2fd;
  border: 1px solid #1565c0;
}
.calendar-special-hint {
  margin-top: 10px;
  margin-bottom: 8px;
  padding: 10px 12px;
  background: #f5f9ff;
  border: 1px solid #d7e8ff;
  border-radius: 8px;
}

.calendar-special-hint__row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: #03273f;
  line-height: 1.4;
}

/* ===== ROLLS (шапка "Ролик X" + "Время сдачи") ===== */

.roll-block{
  width: 100%;
}

.roll-header-row{
  margin-bottom: 10px;
}

.roll-header{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:16px;
}

.roll-title{
  font-weight:700;
  color:#03273f;
  font-size:14px;
}

.roll-deadline-time{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:6px;
  min-width:140px;
}

.roll-deadline-label{
  font-size:12px;
  font-weight:800;
  letter-spacing:.06em;
  text-transform:uppercase;
  opacity:.75;
  margin:0;
}

.roll-time-picker{
  width:110px;
  max-width:110px;
  height:34px;
  padding:0 10px;
  border-radius:8px;
  border:1px solid #ddd;
  background:#fff;
  box-sizing:border-box;
}

/* чтобы строки "До 1 минуты..." не сжимались */
.roll-duration-block .option-row{
  width:100%;
  justify-content:space-between;
}


/* ===== RIGHT COLUMN / OFFER COLUMN ===== */

.chuuk-price-card{
  flex: 0 0 420px;
  width: 420px;
  max-width: 420px;
  position: sticky;
  top: 20px;
  align-self: flex-start;
}

/* Сводка, карточки подрядчиков и тумблер скидки лежат
   на ОДНОМ синем фоне — раньше это были три отдельные
   панели с зазорами, и блок выглядел разрозненным.
   Фон переехал сюда, с самих панелей снят. */
.offer-stack{
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  /* Без этой строки ширина 100% складывалась с отступами по 10,
     и синяя подложка вылезала за свою колонку на 20 пикселей —
     на телефоне оффер выглядел приклеенным к правому краю
     и обрезанным. Границу страницы держит overflow-x: clip,
     поэтому уехавший край просто отрезало. */
  box-sizing: border-box;
  padding: 10px;
  background: #082b47;
  border-radius: 28px;
  box-shadow: 0 12px 28px rgba(0,0,0,.10);
}

/* ===== ОБЩИЙ СТИЛЬ СИНИХ БЛОКОВ ===== */

.offer-panel{
  background: transparent;
  border-radius: 22px;
  padding: 0;
  box-shadow: none;
}

/* ===== БЛОК 1: ВЕРХНИЙ БИЛЕТ ===== */

.offer-panel--summary{
  position: relative;
  background: #fff;
  border-radius: 22px;
  padding: 2px 0 10px;
}

.offer-panel--summary > *{
  position: relative;
  z-index: 1;
}

.offer-ticket__badges{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 14px 10px;
}


.offer-badge{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 5px 12px;
  border-radius: 999px;
  background: #03273f;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.offer-badge--warning{
  background:#fff3cd;
  color:#8a6800;
  border:1px solid #f1df9a;
}

.offer-ticket__urgency{
  justify-self:end;
  align-self:center;
  min-width:112px;
  min-height:38px;
  padding:6px 10px;
  border-radius:12px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  gap:2px;
}

.offer-ticket__urgency-text{
  display:none;
}

.offer-ticket__urgency-icons{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:2px;
  min-height:18px;
}

.offer-ticket__bolt{
  font-size:15px;
  line-height:1;
}

.offer-ticket__bolt--green{
  color:#2e7d32;
}

.offer-ticket__bolt--yellow{
  color:#d9a300;
}

.offer-ticket__bolt--red{
  color:#d32f2f;
}

.offer-ticket__urgency--green{
  background:#e8f5e8;
  border:1px solid #bfe1bf;
}

.offer-ticket__urgency--yellow{
  background:#fff3cd;
  border:1px solid #f1df9a;
}

.offer-ticket__urgency--red{
  background:#ffebee;
  border:1px solid #efb7bf;
}

.offer-ticket__shift{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 14px 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f2f4f7;
  color: #4b5563;
  font-size: 11px;
  font-weight: 700;
}

.offer-ticket__route{
  display: grid;
  grid-template-columns: auto auto auto 1fr;
  align-items: end;
  column-gap: 10px;
  margin: 0 14px 10px;
}

/* На телефоне четыре колонки в строку не помещаются: строка требовала
   349 точек, и из-за неё весь калькулятор становился шире экрана —
   страницу можно было сдвинуть вбок, справа открывалась пустота.
   Срочность уводим на вторую строку. */
@media (max-width: 560px){
  .offer-ticket__route{
    grid-template-columns: auto auto 1fr;
    row-gap: 8px;
  }

  .offer-ticket__urgency{ grid-column: 1 / -1; }
}

.offer-ticket__route-point{
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.offer-ticket__route-label{
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #6b7280;
  font-weight: 700;
}

.offer-ticket__route-date{
  font-size: 14px;
  font-weight: 900;
  color: #111827;
  line-height: 1.1;
}

.offer-ticket__route-arrow{
  font-size: 18px;
  font-weight: 700;
  color: #111827;
  opacity: .7;
  margin-bottom: 2px;
}

.offer-ticket__timeline{
  display: flex;
  align-items: flex-end;
  gap: 10px;
  margin: 0 14px 14px;
}

.offer-ticket__time-block{
  min-width: 54px;
}

.offer-ticket__time-block--end{
  text-align: right;
}

.offer-ticket__time{
  font-size: 20px;
  font-weight: 900;
  color: #000;
  line-height: 1;
}

.offer-ticket__time-sub{
  margin-top: 4px;
  font-size: 9px;
  line-height: 1.1;
  color: #4b5563;
}

.offer-ticket__duration{
  flex: 1;
  position: relative;
  padding-bottom: 8px;
}

.offer-ticket__duration-line{
  height: 2px;
  background: #111827;
  position: relative;
  top: 14px;
}

.offer-ticket__duration-line::after{
  content: "";
  position: absolute;
  right: -1px;
  top: 50%;
  transform: translateY(-50%);
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 8px solid #111827;
}

.offer-ticket__duration-text{
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 6px;
}
.offer-panel--summary > .price-options{
  display:none !important;
}

.offer-panel--summary #offerFeatures .option-price-item,
.offer-panel--summary .offer-features .option-price-item{
  display:none !important;
}
/* ===== БЛОК 2: ЛУЧШИЕ ПРЕДЛОЖЕНИЯ ===== */

/* Заголовок стоял абсолютом по центру панели и налезал на
   карточку. Теперь это обычная строка в потоке. */
.offer-panel__title{
  position:static;
  transform:none;
  margin:2px 0 12px;
  color:#ffffff;
  font-family:var(--font-display);
  font-size:17px;
  font-weight:700;
  letter-spacing:-.01em;
  pointer-events:none;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
}

.offer-panel__title::after{
  content:"🔥";
  font-size:18px;
  line-height:1;
}

.offer-panel--pricing{
  position:relative;
  min-height:0;
  padding:14px 12px 12px;
  display:block;
  overflow:visible;
}

/* Карточки лежат в сетке, а не абсолютом: высота считается
   по содержимому, поэтому длинная цена больше ничего не
   ломает. Вторая колонка появляется только когда есть
   следующая карточка. */
.offer-panel__cards{
  position:relative;
  width:100%;
  height:auto;
  margin-top:0;
  display:flex;
  align-items:stretch;
  gap:10px;
}

.offer-producer-card{
  position:static;
  top:auto;
  flex:1 1 auto;
  min-width:0;
  background:#fff;
  border-radius:22px;
  box-shadow:0 8px 22px rgba(0,0,0,.10);
  box-sizing:border-box;
  overflow:visible;
  transition:opacity .3s ease;
}

/* Показываем активную и следующую, остальные ждут своей
   очереди в слайдере */
.offer-producer-card:not(.offer-producer-card--active):not(.offer-producer-card--next){
  display:none;
}

.offer-producer-card--active{
  width:auto;
  height:auto;
  opacity:1;
  pointer-events:auto;
  transform:none;
}

.offer-producer-card--next{
  flex:0 0 104px;
  width:104px;
  height:auto;
  opacity:1;
  pointer-events:none;
  transform:none;
}

.offer-producer-card__layout{
  position:relative;
  height:100%;
  display:flex;
  flex-direction:column;
  gap:14px;
  padding:16px;
  box-sizing:border-box;
}

/* «ПРОДАКШН» больше не висит абсолютом над карточкой —
   он первая строка внутри неё */
.offer-card-cloud{
  position:static;
  align-self:flex-start;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:22px;
  padding:4px 10px;
  border-radius:999px;
  background:#eaf0f5;
  color:#03273f;
  font-size:9px;
  font-weight:800;
  letter-spacing:.06em;
  text-transform:uppercase;
  white-space:nowrap;
}

.offer-producer-card--next .offer-card-cloud{
  align-self:center;
  padding:4px 8px;
  font-size:8px;
  min-height:20px;
  transform:none;
}

/* Верх карточки: все метки в одну строку, сердечко у правого края */
.offer-card-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  min-height:auto;
  margin-top:0;
}

.offer-card-tags{
  flex:1;
  min-width:0;
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:6px;
}

/* Все метки одной высоты, иначе «ПРОДАКШН» стоит выше соседей */
.offer-card-tags > .offer-card-cloud,
.offer-card-meta .chuuk-badge{
  min-height:28px;
  display:inline-flex;
  align-items:center;
}

/* Отступ сверху остался от прежней раскладки, когда метки стояли
   отдельной строкой под логотипом — из-за него «ИП · СЗ» и
   «Проверен» съезжали на 8 пикселей ниже «ПРОДАКШН» */
.offer-card-meta{
  display:flex;
  align-items:center;
  gap:6px;
  margin:0;
  padding:0;
  min-height:0;
}

/* Логотип слева, цена по центру, кнопка у правого края */
.offer-card-body{
  display:flex;
  align-items:center;
  gap:18px;
}

/* Цена начинается там же, где «ИП · СЗ» в строке меток —
   так левый край цифр и меток стоят на одной линии */
.offer-card-money{
  flex:1;
  min-width:0;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:12px;
}

.offer-card-money .offer-ticket__more{
  align-self:flex-end;
}

/* Логотип в кружке — так он читается как аватар подрядчика
   и не теряется рядом с ценой */
.offer-brand-block{
  flex-shrink:0;
  width:96px;
  height:96px;
  box-sizing:border-box;   /* иначе отступы прибавятся к 96 и кружок вырастет */
  display:flex;
  align-items:center;
  justify-content:center;
  padding:9px;
  border-radius:50%;
  background:#fff;
  border:1px solid var(--chuuk-line);
  overflow:hidden;
}

/* Логотип занимает кружок целиком.
   Было width/height:auto — картинка рисовалась в своём размере и
   в кружке не растягивалась. Теперь она всегда тянется до краёв,
   а object-fit:contain держит пропорции и ничего не обрезает.

   Если логотип подрядчика всё равно кажется мелким — скорее всего,
   в самом файле вокруг рисунка залиты пустые поля. Из вёрстки их
   не видно, поэтому подрядчик подгоняет размер сам, бегунком
   в кабинете: он дописывает сюда transform:scale(...), а лишнее
   обрезает overflow:hidden у кружка. */
.offer-brand-logo{
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
  transform-origin:center;
}

.offer-brand-text{
  font-size:12px;
  line-height:1.05;
  font-weight:700;
  color:#111827;
  display:flex;
  align-items:center;
  min-height:34px;
}

/* Сердечко «в избранное».

   Размер и сдвиг вынесены в переменные: владелец подгоняет их сам,
   инструментом «Двигать сердечко» в админке, — ровно как когда-то
   подбирал положение цены. Значения по умолчанию уже крупнее
   и ниже прежних: маленькое сердечко в самом углу не замечали. */
:root{
  --fav-size: 28px;
  --fav-dx: 0px;
  --fav-dy: 8px;
}

.offer-favorite-wrap{
  width:var(--fav-size);
  height:var(--fav-size);
  display:flex;
  align-items:flex-start;
  justify-content:center;
  flex-shrink:0;
  margin-top:0;
}

.offer-favorite-btn{
  appearance:none;
  -webkit-appearance:none;
  border:none;
  outline:none;
  background:transparent;
  box-shadow:none;
  padding:0;
  width:var(--fav-size);
  height:var(--fav-size);
  display:flex;
  align-items:center;
  justify-content:center;
  color:#03273f;
  line-height:1;
  cursor:pointer;
  /* Сдвиг через transform: соседи и высота карточки не двигаются —
     то же решение, что у цены */
  transform:translate(var(--fav-dx), var(--fav-dy));
}

/* Сердечко рисуем сами, а не берём символ ♡ / ♥.
   Это два разных знака шрифта, разной ширины: при нажатии картинка
   заметно прыгала в размере. У своего контура меняется только
   заливка — размер остаётся тем же. */
.offer-favorite-btn__icon{
  width:100%;
  height:100%;
  display:block;
  fill:none;
  stroke:currentColor;
  stroke-width:1.7;
  stroke-linejoin:round;
  transition:fill .15s ease, transform .15s ease;
}

.offer-favorite-btn:hover .offer-favorite-btn__icon{ transform:scale(1.08); }

.offer-favorite-btn.is-active .offer-favorite-btn__icon{
  fill:currentColor;
}

.offer-favorite-btn:hover,
.offer-favorite-btn:focus,
.offer-favorite-btn:active{
  border:none;
  outline:none;
  background:transparent;
  box-shadow:none;
}

/* Цена слева, кнопка справа — обе в потоке.
   Раньше обе были absolute и при длинной сумме наезжали
   друг на друга: отсюда и «карточка разъезжается». */
.offer-card-bottom{
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 0;
  min-height: 0;
}

/* Цена слева, кнопка справа — в одной строке.
   Раньше цена шла отдельной полосой во всю ширину, и под ней
   оставалась пустота почти в треть карточки. */
.offer-ticket__price{
  position: static;
  right: auto;
  top: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;

  /* Подтягиваем цифры влево, под начало «ИП · СЗ»:
     иначе цена стоит правее меток из-за отступа от логотипа */
  margin-left: -18px;

  white-space: nowrap;
  color: #03273f;
  font-family: var(--font-text);
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1;
}

.offer-ticket__price-current{
  display: block;
  line-height: 1;
}

.offer-ticket__price-old{
  display: block;
  min-height: 12px;
  font-size: 12px;
  font-weight: 600;
  color: #9ca3af;
  text-decoration: line-through;
  line-height: 1;
  margin-top: 4px;
}

.offer-ticket__more{
  position: static;
  right: auto;
  bottom: auto;
  display: flex;
  justify-content: flex-end;
  flex-shrink: 0;
}

.offer-ticket__more-btn{
  height: 34px;
  padding: 0 18px;
  border: none;
  border-radius: 999px;
  background: #03273f;
  color:#fff;
  font-family:var(--font-text);
  font-size:13px;
  font-weight:500;
  cursor:pointer;
  transition:background .2s ease, transform .2s ease;
}

.offer-ticket__more-btn:hover{
  background:#021c2e;
  transform:translateY(-1px);
}

@media (max-width:768px){
  .offer-ticket__price{
    font-size: 24px;
  }

  .offer-ticket__price-old{
    font-size: 10px;
    margin-top: 3px;
  }

  .offer-ticket__more-btn{
    height:30px;
    padding:0 14px;
    font-size:13px;
  }
}
.offer-producer-card--next .offer-card-top{
  grid-template-columns:1fr;
  justify-items:center;
  row-gap:6px;
  min-height:auto;
  margin-top:18px;
}

.offer-producer-card--next .offer-brand-text{
  font-size:10px;
  line-height:1.05;
  text-align:center;
  min-height:auto;
  justify-content:center;
}

.offer-producer-card--next .offer-brand-logo{
  max-width:62px;
  max-height:28px;
}

.offer-producer-card--next .offer-favorite-wrap{
  display:none;
}

.offer-producer-card--next .offer-card-bottom{
  display:none;
}

.offer-panel__side-btn{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:32px;
  height:32px;
  border-radius:50%;
  border:none;
  background:#fff;
  color:#03273f;
  box-shadow:0 4px 12px rgba(0,0,0,.14);
  font-size:18px;
  font-weight:700;
  cursor:pointer;
  z-index:20;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0;
  line-height:1;
  transition:.2s;
}

.offer-panel__side-btn:hover{
  transform:translateY(-50%) scale(1.04);
  box-shadow:0 10px 24px rgba(0,0,0,.18);
}

.offer-panel__side-btn--left{
  left:8px;
}

.offer-panel__side-btn--right{
  right:8px;
}

@media (max-width:768px){
  .offer-panel__side-btn{
    width:36px;
    height:36px;
    font-size:20px;
  }

  .offer-panel__side-btn--left{
    left:14px;
  }

  .offer-panel__side-btn--right{
    right:14px;
  }
}
/* =========================================================
   PREVIEW MODAL — CLEAN FINAL
   ========================================================= */

.estimate-preview-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
}

.estimate-preview-modal.active {
  display: block;
}

.estimate-preview-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(3, 18, 31, 0.52);
  backdrop-filter: blur(4px);
}

.estimate-preview-modal__sheet {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(920px, calc(100vw - 32px));
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  background: #ffffff;
  border-radius: 24px;
  padding: 34px 32px 28px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.22);
}

.estimate-preview-modal__sheet--wide {
  width: min(920px, calc(100vw - 32px));
}

.estimate-preview-modal__top {
  position: absolute;
  top: 18px;
  right: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 2;
}

.estimate-preview-modal__close,
.estimate-preview-modal__fav {
  width: 40px;
  height: 40px;
  border: 1px solid #dbe3ea;
  border-radius: 50%;
  background: #ffffff;
  color: #03273f;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.estimate-preview-modal__close:hover,
.estimate-preview-modal__fav:hover {
  background: #f6f9fc;
  border-color: #c8d5e2;
  transform: translateY(-1px);
}

.estimate-preview-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}

.estimate-preview-left {
  min-height: 180px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 0;
  margin: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.estimate-preview-logo {
  display: block;
  max-width: 200px;
  max-height: 120px;
  width: auto;
  height: auto;
  object-fit: contain;
  background: transparent;
  border: none;
  box-shadow: none;
}

.estimate-preview-right {
  min-width: 0;
}

.estimate-preview-title {
  font-size: 32px;
  line-height: 1.05;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 10px;
  padding-right: 88px;
}

.estimate-preview-text {
  font-size: 15px;
  line-height: 1.65;
  color: #475467;
  margin-bottom: 20px;
  max-width: 560px;
}

.estimate-preview-price {
  font-size: 34px;
  line-height: 1;
  font-weight: 900;
  color: #03273f;
  margin-bottom: 26px;
}

.estimate-preview-section-title {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #667085;
  margin-bottom: 12px;
}

.estimate-preview-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.estimate-preview-video {
  display: block;
  text-decoration: none;
  color: inherit;
}

.estimate-preview-video__thumb {
  height: 120px;
  border-radius: 14px;
  background: linear-gradient(180deg, #eef3f8 0%, #dde7f0 100%);
  border: 1px solid #dbe5ee;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px;
  font-size: 13px;
  font-weight: 700;
  color: #344054;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}

.estimate-preview-video:hover .estimate-preview-video__thumb {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(3, 39, 63, 0.10);
}

.estimate-preview-video__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 12px;
}

.estimate-preview-bottom {
  margin-top: 28px;
}

.estimate-preview-download {
  width: 100%;
  min-height: 56px;
  border: none;
  border-radius: 16px;
  background: linear-gradient(135deg, #03273f 0%, #0a3d62 100%);
  color: #ffffff;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  box-shadow: 0 12px 28px rgba(3, 39, 63, 0.22);
}

.estimate-preview-download:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(3, 39, 63, 0.28);
}

.estimate-preview-download:active {
  transform: translateY(0);
  opacity: 0.96;
}

@media (max-width: 768px) {
  .estimate-preview-modal__sheet {
    width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);
    padding: 22px 18px 18px;
    border-radius: 20px;
  }

  .estimate-preview-modal__top {
    top: 12px;
    right: 12px;
  }

  .estimate-preview-modal__close,
  .estimate-preview-modal__fav {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }

  .estimate-preview-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .estimate-preview-left {
    min-height: 100px;
    justify-content: flex-start;
  }

  .estimate-preview-logo {
    max-height: 84px;
  }

  .estimate-preview-title {
    font-size: 26px;
    padding-right: 0;
    margin-top: 6px;
  }

  .estimate-preview-text {
    font-size: 14px;
    line-height: 1.55;
    margin-bottom: 16px;
  }

  .estimate-preview-price {
    font-size: 28px;
    margin-bottom: 20px;
  }

  .estimate-preview-gallery {
    grid-template-columns: 1fr;
  }

  .estimate-preview-video__thumb {
    height: 100px;
  }

  .estimate-preview-download {
    min-height: 52px;
    font-size: 16px;
    border-radius: 14px;
  }
}

.auth-discount-toggle{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-top:10px;
  padding:12px 14px;
  border-radius:14px;
  background:#f6f8fb;
}

.auth-discount-toggle label{
  font-size:13px;
  font-weight:600;
  color:#03273f;
}

.auth-discount-toggle input[type="checkbox"]{
  appearance:none;
  width:42px;
  height:22px;
  border-radius:999px;
  background:#d1d5db;
  position:relative;
  transition:.2s;
}

.auth-discount-toggle input[type="checkbox"]::after{
  content:"";
  position:absolute;
  top:3px;
  left:3px;
  width:16px;
  height:16px;
  border-radius:50%;
  background:#fff;
  transition:.2s;
}

.auth-discount-toggle input[type="checkbox"]:checked{
  background:#03273f;
}

.auth-discount-toggle input[type="checkbox"]:checked::after{
  left:23px;
}
/* ===== ESTIMATE DISCOUNT PRICE ===== */

.estimate-doc__total-badge-old {
  font-size: 18px;
  line-height: 1.2;
  font-weight: 700;
  opacity: 0.7;
  text-decoration: line-through;
  margin-bottom: 6px;
  white-space: nowrap;
}

.estimate-doc__grand-old {
  display: block;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 700;
  color: #6b7280;
  text-decoration: line-through;
  margin-bottom: 4px;
}

.estimate-doc__grand-new {
  display: block;
  font-size: 32px;
  line-height: 1;
  font-weight: 900;
  color: #03273f;
}

/* ===== OFFER DISCOUNT SWITCH (JS class is-on) ===== */

#offerDiscountSwitch {
  position: relative;
  width: 42px;
  height: 22px;
  border-radius: 999px;
  background: #d1d5db;
  transition: .2s;
  cursor: pointer;
  flex-shrink: 0;
}

#offerDiscountSwitch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: .2s;
}

#offerDiscountSwitch.is-on {
  background: #03273f;
}

#offerDiscountSwitch.is-on::after {
  left: 23px;
}

.entry-modal.hidden {
  display: none;
}

.entry-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  width: 100%;
  height: 100vh;
  padding: 20px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}
.entry-modal__dialog {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  background: #ffffff;
  border: 1px solid rgba(3, 39, 63, 0.08);
  border-radius: 28px;
  padding: 28px 28px 22px;
  box-shadow:
    0 24px 80px rgba(15, 23, 42, 0.12),
    0 8px 24px rgba(15, 23, 42, 0.08);
}

.entry-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: 0.2s ease;
}

.entry-close:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.entry-step {
  display: block;
}

.entry-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 14px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: #eef4fb;
  color: #03273f;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.entry-title {
  margin: 0 0 10px;
  color: #10233e;
  font-size: 34px;
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.entry-subtitle {
  margin: 0 0 22px;
  color: #5b6676;
  font-size: 15px;
  line-height: 1.45;
}

.entry-options {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.entry-option {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  padding: 18px 20px;
  border-radius: 20px;
  border: 1px solid #e7edf5;
  background: #f8fafc;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.entry-option:hover {
  transform: translateY(-1px);
  border-color: rgba(3, 39, 63, 0.18);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.entry-option.is-selected {
  background: linear-gradient(180deg, #0e4c87 0%, #03273f 100%);
  border-color: #0e4c87;
  box-shadow: 0 16px 34px rgba(3, 39, 63, 0.22);
}

.entry-option__title {
  color: #0f172a;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 700;
  margin-bottom: 6px;
}

.entry-option__text {
  color: #667085;
  font-size: 14px;
  line-height: 1.4;
}

.entry-option.is-selected .entry-option__title,
.entry-option.is-selected .entry-option__text {
  color: #ffffff;
}

.entry-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 22px;
}

.entry-btn {
  width: 100%;
  min-height: 52px;
  border: none;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s ease;
}

.entry-btn--primary {
  background: linear-gradient(180deg, #0e4c87 0%, #03273f 100%);
  color: #ffffff;
}

.entry-btn--primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(3, 39, 63, 0.22);
}

.entry-btn--primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.entry-btn--ghost {
  min-height: 46px;
  background: transparent;
  color: #667085;
}

.entry-btn--ghost:hover {
  background: #f8fafc;
  color: #0f172a;
}

.entry-btn--secondary {
  background: #f1f5f9;
  color: #03273f;
}

.entry-btn--secondary:hover {
  background: #e2e8f0;
}

.entry-auth {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.entry-input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid #dbe3ea;
  border-radius: 14px;
  font-size: 15px;
  color: #0f172a;
  background: #fff;
  box-sizing: border-box;
}

.entry-input:focus {
  outline: none;
  border-color: #03273f;
  box-shadow: 0 0 0 3px rgba(3, 39, 63, 0.08);
}

.entry-link {
  border: none;
  background: transparent;
  padding: 0;
  margin-top: 4px;
  color: #667085;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  text-decoration: underline;
}

.entry-msg {
  min-height: 20px;
  margin-top: 4px;
  font-size: 14px;
}

@media (max-width: 640px) {
  .entry-modal {
    padding: 16px;
  }

  .entry-modal__dialog {
    padding: 22px 18px 18px;
    border-radius: 22px;
  }

  .entry-title {
    font-size: 28px;
  }

  .entry-option {
    padding: 16px;
    border-radius: 18px;
  }

  .entry-option__title {
    font-size: 18px;
  }
}

#entryStepAuth .entry-title {
  margin-bottom: 18px;
}

#entryStepAuth .entry-input {
  display: block;
  width: 100%;
  margin-bottom: 12px;
}

#entryStepAuth .entry-btn {
  display: block;
  width: 100%;
  margin-top: 10px;
}

#entryStepAuth .entry-link {
  display: inline-block;
  margin-top: 12px;
}

#authMsg {
  min-height: 20px;
  margin-top: 10px;
  font-size: 14px;
}

.entry-option {
  box-shadow: none !important;
}

.entry-option.is-selected {
  box-shadow: none !important;
  transform: none !important;
}

.entry-step {
  gap: 12px;
}

.entry-input {
  margin-bottom: 8px;
}

.entry-actions {
  margin-top: 14px;
}

.entry-arrow-btn {
  display: none !important;
}

.entry-input:invalid {
  box-shadow: none;
}

.entry-input option[value=""] {
  color: transparent;
}


/* =========================================================
   ОКНО ВХОДА — по образцу hh.ru
   Узкая белая карточка по центру, логотип сверху, крупный
   заголовок, синие кнопки. Разметку и все id не трогали:
   их держит initEntryModal() в js/auth.js.
   ========================================================= */

.entry-modal {
  background: var(--chuuk-bg);
  align-items: flex-start;
  padding: 60px 20px 40px;
  overflow-y: auto;
}

.entry-modal__dialog {
  max-width: 420px;
  border-radius: 24px;
  border: 1px solid var(--chuuk-line);
  padding: 24px 28px 28px;
  box-shadow: 0 6px 24px rgba(15, 23, 42, .06);
}

.entry-logo {
  margin: 0 auto 22px;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 22px;
  letter-spacing: -.01em;
  color: var(--chuuk-navy);
}

.entry-close {
  top: 14px;
  right: 14px;
  width: 30px;
  height: 30px;
  font-size: 18px;
  background: transparent;
  color: var(--chuuk-muted-light);
}

.entry-step-label {
  text-align: center;
  font-size: 12px;
  color: var(--chuuk-muted-light);
  margin-bottom: 8px;
}

.entry-brand {
  display: none;
}

.entry-title {
  margin: 0 0 8px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--chuuk-ink);
}

.entry-subtitle {
  margin: 0 0 20px;
  text-align: center;
  font-size: 14px;
  line-height: 1.5;
  color: var(--chuuk-muted);
}

/* Карточки выбора роли: у выбранной синяя рамка,
   как на hh. Фон при этом остаётся белым. */
.entry-option {
  padding: 16px 18px;
  border-radius: 16px;
  border: 2px solid var(--chuuk-line);
  background: #fff;
}

.entry-option:hover {
  transform: none;
  border-color: var(--chuuk-muted-light);
}

.entry-option.is-selected,
.entry-option.is-selected:hover {
  background: #fff !important;
  border-color: var(--chuuk-blue) !important;
}

.entry-option__title {
  font-size: 16px;
  font-weight: 500;
  color: var(--chuuk-ink);
}

.entry-option.is-selected .entry-option__title {
  color: var(--chuuk-ink);
}

.entry-option__text {
  margin-top: 2px;
  font-size: 13px;
  color: var(--chuuk-muted-light);
}

.entry-option.is-selected .entry-option__text {
  color: var(--chuuk-muted-light);
}

.entry-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 18px;
}

.entry-btn {
  width: 100%;
  min-height: 48px;
  border-radius: 12px;
  font-family: var(--font-text);
  font-size: 15px;
  font-weight: 500;
}

.entry-btn--primary {
  background: var(--chuuk-blue);
  border: none;
  color: #fff;
}

.entry-btn--primary:hover {
  background: #1560cf;
}

.entry-btn--primary:disabled {
  background: var(--chuuk-line);
  color: var(--chuuk-muted-light);
}

.entry-btn--secondary {
  background: var(--chuuk-blue-soft);
  border: none;
  color: var(--chuuk-blue);
}

.entry-btn--ghost {
  background: transparent;
  border: none;
  color: var(--chuuk-muted);
}

.entry-input {
  min-height: 48px;
  border-radius: 12px;
  border: 1px solid var(--chuuk-line);
  font-family: var(--font-text);
  font-size: 15px;
}

.entry-input:focus {
  border-color: var(--chuuk-blue);
  box-shadow: none;
}

/* Поле кода — крупно и по центру, как на hh */
.entry-input--code {
  text-align: center;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: .5em;
  text-indent: .5em;
  padding: 14px;
}

.entry-timer {
  min-height: 20px;
  margin-top: 4px;
  text-align: center;
  font-size: 13px;
  color: var(--chuuk-muted-light);
}

.entry-link {
  display: block;
  width: 100%;
  margin-top: 4px;
  text-align: center;
  color: var(--chuuk-blue);
  font-size: 14px;
}

/* =========================================================
   АНКЕТА ПОДРЯДЧИКА В ОКНЕ ВХОДА
   Кто он, город, командировки и вопросы по роли. Раньше здесь
   был один список «должность в команде», и сервис ничего не знал
   ни о городе, ни о том, монтирует ли оператор.
   ========================================================= */

.entry-label {
  margin: 14px 0 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--chuuk-ink);
}

.entry-hint {
  margin: -2px 0 10px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--chuuk-muted-light);
}

/* Четыре роли: карточками, а не выпадающим списком — выбор
   определяет всё дальше, и его нужно видеть целиком */
.entry-roles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.entry-role {
  display: block;
  text-align: left;
  padding: 12px 14px;
  border: 2px solid var(--chuuk-line);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  font-family: var(--font-text);
}

.entry-role b {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--chuuk-ink);
}

.entry-role span {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  line-height: 1.35;
  color: var(--chuuk-muted-light);
}

.entry-role:hover { border-color: var(--chuuk-muted-light); }
.entry-role.is-selected { border-color: var(--chuuk-blue); }

@media (max-width: 480px) {
  .entry-roles { grid-template-columns: 1fr; }
}

/* Да / нет — две кнопки вместо галочки: понятнее, что вопрос задан */
.entry-yesno {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.entry-yesno__btn {
  flex: 1;
  min-height: 44px;
  border: 2px solid var(--chuuk-line);
  border-radius: 12px;
  background: #fff;
  font-family: var(--font-text);
  font-size: 14px;
  color: var(--chuuk-muted);
  cursor: pointer;
}

.entry-yesno__btn:hover { border-color: var(--chuuk-muted-light); }

.entry-yesno__btn.is-selected {
  border-color: var(--chuuk-blue);
  color: var(--chuuk-ink);
  font-weight: 600;
}

.entry-textarea {
  min-height: 92px;
  padding: 12px 14px;
  line-height: 1.5;
  resize: vertical;
}

[data-kind-only][hidden] { display: none; }

/* Календарь занятости у подрядчика и в админке: день без отметки.

   Раньше такие дни оставались белыми, и сетка выглядела пустой —
   отметки на белом фоне терялись, а человек не понимал, сохранилось
   ли вообще что-то. В калькуляторе у клиента каждый доступный день
   цветной, здесь теперь так же: серый — не отмечен, зелёный —
   свободен, красный — занят. */
.calendar-day.calendar-day--unset {
  background: #f1f3f7;
  color: #8a95a6;
}

.calendar-day.calendar-day--unset:hover {
  background: #e6eaf1;
  color: #03273f;
}

.legend-color.calendar-day--unset { background: #f1f3f7; }

/* Нажатый день — синий при любом состоянии.
   Правило «не отмечен» стоит НИЖЕ, чем .calendar-day.selected, и при
   одинаковом весе побеждало его: человек нажимал на серый день, дата
   появлялась в поле сверху, а сама клетка оставалась серой. */
.calendar-day.selected,
.calendar-day.selected:hover,
.calendar-day--unset.selected,
.calendar-day--unset.selected:hover,
.calendar-day.available.selected,
.calendar-day.unavailable-red.selected {
  background: #03273f;
  color: #fff;
}

/* Точки-шаги внутри анкеты подрядчика: экранов три, но в общем
   счёте это по-прежнему второй шаг регистрации — «шаг 5 из 6»
   пугал бы сильнее, чем сама анкета */
.entry-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 0 0 18px;
}

.entry-dots__item {
  width: 26px;
  height: 4px;
  border-radius: 2px;
  background: var(--chuuk-line);
}

.entry-dots__item.is-done { background: #cfe3d6; }
.entry-dots__item.is-now { background: var(--chuuk-blue); }

/* Честная плашка в анкете: города пока нет, но выход есть */
.entry-note {
  margin: -2px 0 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fdf3e2;
  border: 1px solid #f0dcbb;
  font-size: 13px;
  line-height: 1.5;
  color: #8a5314;
}

.entry-note b { display: block; margin-bottom: 4px; }
.entry-note[hidden] { display: none; }

/* =========================================================
   ШИРОКАЯ АНКЕТА ПОДРЯДЧИКА
   ---------------------------------------------------------
   У клиента в форме четыре поля, и узкая карточка ей идёт.
   У подрядчика — роли карточками, вопросы «да/нет» и подсказка
   под каждым полем: в колонке 420 точек это выглядело экраном
   телефона, и владелец так и сказал. Поэтому на его шаге
   карточка расширяется, а вопросы встают в две колонки.

   Класс вешает showEntryStep() в js/auth.js — только на шаге
   подрядчика и снимает на всех остальных.
   ========================================================= */

.entry-modal__dialog--wide {
  max-width: 680px;
  padding: 26px 34px 30px;
}

/* Пара полей в строку: имя и город, почта и пароль */
.entry-modal__dialog--wide .entry-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 14px;
}

/* Вопросы «как вы работаете» — по два в ряд */
.entry-modal__dialog--wide .entry-panes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 22px;
  align-items: start;
}

/* Свой display побеждает браузерное [hidden] — и скрытый экран
   анкеты вылезал поверх открытого. В проекте это уже было
   со сметой; пишем правило явно. */
.entry-modal__dialog--wide .entry-panes[hidden] { display: none; }

.entry-q .entry-label { margin-top: 0; }

/* Узкий экран — всё обратно в столбик: там ширины нет ни у кого */
@media (max-width: 640px) {
  .entry-modal__dialog--wide { max-width: 420px; padding: 24px 28px 28px; }
  .entry-modal__dialog--wide .entry-pair,
  .entry-modal__dialog--wide .entry-panes { grid-template-columns: 1fr; }
}


/* =========================================================
   СОГЛАСИЕ НА ОБРАБОТКУ ДАННЫХ И ПОДСВЕТКА НЕЗАПОЛНЕННОГО
   ---------------------------------------------------------
   По 152-ФЗ галочка согласия не должна стоять заранее, а рядом
   обязана быть ссылка на политику. Раньше формы собирали имя,
   почту и должность вообще без согласия.

   Подсветка поля нужна была по другой причине: на «Заполните все
   поля» человек искал глазами, какое именно пустое, — в анкете
   подрядчика их больше десятка.
   ========================================================= */

.entry-consent {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 4px 0 10px;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--chuuk-muted);
  cursor: pointer;
}

.entry-consent input {
  width: 17px;
  height: 17px;
  margin: 1px 0 0;
  flex: none;
  accent-color: var(--chuuk-blue);
  cursor: pointer;
}

.entry-consent a {
  color: var(--chuuk-blue);
  text-decoration: underline;
}

/* Не отметили — показываем это спокойно, без красной стены */
.entry-consent--bad {
  color: var(--chuuk-danger);
}

.entry-consent--bad input {
  outline: 2px solid var(--chuuk-danger);
  outline-offset: 2px;
  border-radius: 3px;
}

.entry-input--bad {
  border-color: var(--chuuk-danger) !important;
  background: #fff6f6;
}
