.helmet-page {
    --violet: #5b3fa3;
    --violet-dark: #4a3287;
    --violet-soft: #efe9ff;
    --violet-soft-2: #f7f4ff;
    --text: #1f2330;
    --muted: #667085;
    --border: #e6e2f3;
    --white: #ffffff;
    --success-bg: #e8f7ea;
    --success-text: #1f8f45;
    --warning-bg: #fff4db;
    --warning-text: #9a6b00;
    --danger-bg: #fde8e8;
    --danger-text: #b42318;
    --neutral-bg: #f6f4fb;

    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    padding: 40px 20px 56px;
    background:
      radial-gradient(circle at top left, rgba(91, 63, 163, 0.08), transparent 28%),
      radial-gradient(circle at top right, rgba(91, 63, 163, 0.06), transparent 24%),
      #f7f7fb;
  }

  .helmet-page * { box-sizing: border-box; }

  .helmet-page .wrap {
    max-width: 1120px;
    margin: 0 auto;
  }

  .helmet-page .hero {
    background: linear-gradient(135deg, #5b3fa3 0%, #6d4fc0 100%);
    color: #fff;
    border-radius: 28px;
    padding: 38px 34px;
    box-shadow: 0 18px 45px rgba(62, 39, 121, 0.18);
    position: relative;
    overflow: hidden;
    margin-bottom: 24px;
  }
  
  .helmet-page .hero-logo {
      display: block;
      width: 180px;
      max-width: 42vw;
      height: auto;
      object-fit: contain;
      flex: 0 0 auto;
    }

  .helmet-page .hero::before,
  .helmet-page .hero::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
  }

  .helmet-page .hero::before {
    width: 220px;
    height: 220px;
    top: -70px;
    right: -60px;
  }

  .helmet-page .hero::after {
    width: 140px;
    height: 140px;
    bottom: -40px;
    right: 140px;
  }

  .helmet-page .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .02em;
    margin-bottom: 16px;
  }

  .helmet-page .hero h1 {
    margin: 0 0 10px;
    font-size: clamp(30px, 5vw, 48px);
    line-height: 1.05;
    letter-spacing: -0.03em;
  }

  .helmet-page .hero p {
    margin: 0;
    max-width: 760px;
    font-size: 16px;
    line-height: 1.65;
    color: rgba(255,255,255,0.92);
  }

  .helmet-page .stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 26px;
  }

  .helmet-page .stat-card,
  .helmet-page .panel {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: 0 10px 28px rgba(22, 25, 35, 0.05);
  }

  .helmet-page .stat-card {
    padding: 22px;
  }

  .helmet-page .stat-label {
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 8px;
  }

  .helmet-page .stat-value {
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -0.03em;
  }

  .helmet-page .grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 20px;
  }

  .helmet-page .panel {
    padding: 24px;
  }

  .helmet-page .panel h2,
  .helmet-page .panel h3 {
    margin: 0 0 10px;
    font-size: 24px;
    letter-spacing: -0.02em;
  }

  .helmet-page .panel p {
    margin: 0 0 16px;
    color: var(--muted);
    line-height: 1.65;
    font-size: 15px;
  }

  .helmet-page .field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .helmet-page .field {
    margin-bottom: 14px;
  }

  .helmet-page .field.full {
    grid-column: 1 / -1;
  }

  .helmet-page label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
  }

  .helmet-page input,
  .helmet-page select {
    width: 100%;
    min-height: 48px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: #fff;
    padding: 0 14px;
    font-size: 15px;
    color: var(--text);
    outline: none;
    transition: .2s ease;
  }

  .helmet-page input:focus,
  .helmet-page select:focus {
    border-color: #b9a7ef;
    box-shadow: 0 0 0 4px rgba(91, 63, 163, 0.08);
  }

  .helmet-page .availability-box {
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 16px;
    background: #faf9fe;
    margin: 8px 0 18px;
  }

  .helmet-page .availability-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px dashed #e9e4f6;
    font-size: 14px;
  }

  .helmet-page .availability-row:last-child {
    border-bottom: none;
  }

  .helmet-page .pill {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    border: 1px solid transparent;
    white-space: nowrap;
  }

  .helmet-page .pill.success {
    background: var(--success-bg);
    color: var(--success-text);
    border-color: #ccefd2;
  }

  .helmet-page .pill.warning {
    background: var(--warning-bg);
    color: var(--warning-text);
    border-color: #f4dfaa;
  }

  .helmet-page .pill.danger {
    background: var(--danger-bg);
    color: var(--danger-text);
    border-color: #f5c4c4;
  }

  .helmet-page .pill.neutral {
    background: var(--violet-soft-2);
    color: var(--violet);
    border-color: #e4dbff;
  }

  .helmet-page .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    border: none;
    border-radius: 14px;
    padding: 0 18px;
    text-decoration: none;
    font-weight: 800;
    cursor: pointer;
    transition: .22s ease;
    width: 100%;
  }

  .helmet-page .btn-primary {
    background: var(--violet);
    color: #fff;
  }

  .helmet-page .btn-primary:hover {
    background: var(--violet-dark);
    transform: translateY(-2px);
  }

  .helmet-page .btn-primary:disabled {
    background: #b8afd1;
    cursor: not-allowed;
    transform: none;
  }

  .helmet-page .info-list {
    display: grid;
    gap: 12px;
  }

  .helmet-page .info-item {
    background: #faf9fe;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 14px 16px;
  }

  .helmet-page .info-item strong {
    display: block;
    margin-bottom: 6px;
    font-size: 15px;
  }

  .helmet-page .info-item span {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
  }

  .helmet-page .message {
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 600;
    display: none;
  }

  .helmet-page .message.show { display: block; }
  .helmet-page .message.success {
    background: var(--success-bg);
    color: var(--success-text);
    border: 1px solid #ccefd2;
  }
  .helmet-page .message.error {
    background: var(--danger-bg);
    color: var(--danger-text);
    border: 1px solid #f5c4c4;
  }

  .helmet-page .small-note {
    color: var(--muted);
    font-size: 13px;
    margin-top: 10px;
  }

  .helmet-page .calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
  }

  .helmet-page .calendar-controls {
    display: flex;
    gap: 8px;
  }

  .helmet-page .calendar-btn {
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text);
    border-radius: 12px;
    min-width: 40px;
    min-height: 40px;
    cursor: pointer;
    font-weight: 800;
  }

  .helmet-page .calendar-btn:hover {
    background: #faf9fe;
  }

  .helmet-page .weekday-row,
  .helmet-page .calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
  }

  .helmet-page .weekday {
    text-align: center;
    font-size: 12px;
    color: var(--muted);
    font-weight: 700;
    padding-bottom: 4px;
  }

  .helmet-page .calendar-day {
    min-height: 72px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: #fff;
    padding: 10px 8px;
    font-size: 13px;
    cursor: pointer;
    transition: .18s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .helmet-page .calendar-day:hover {
    transform: translateY(-2px);
    border-color: #d2c7f3;
  }

  .helmet-page .calendar-day.outside {
    opacity: 0.4;
    cursor: default;
  }

  .helmet-page .calendar-day.selected {
    border-color: var(--violet);
    box-shadow: 0 0 0 4px rgba(91, 63, 163, 0.08);
  }

  .helmet-page .calendar-day.day-ok {
    background: #f9f8ff;
  }

  .helmet-page .calendar-day.day-mid {
    background: #fff8e8;
  }

  .helmet-page .calendar-day.day-low {
    background: #fff1df;
  }

  .helmet-page .calendar-day.day-full {
    background: #fdeaea;
  }

  .helmet-page .calendar-day .day-number {
    font-weight: 800;
  }

  .helmet-page .calendar-day .day-caption {
    font-size: 11px;
    color: var(--muted);
  }

  .helmet-page .legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
  }

  .helmet-page .legend-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--muted);
  }

  .helmet-page .legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    border: 1px solid rgba(0,0,0,0.06);
  }

  @media (max-width: 900px) {
    .helmet-page .stats,
    .helmet-page .grid,
    .helmet-page .field-grid {
      grid-template-columns: 1fr;
    }

    .helmet-page .hero {
      padding: 30px 22px;
      border-radius: 22px;
    }
  }

  @media (max-width: 560px) {
    .helmet-page {
      padding: 22px 14px 34px;
    }

    .helmet-page .hero h1 {
      font-size: 32px;
    }

    .helmet-page .stat-value {
      font-size: 28px;
    }

    .helmet-page .calendar-day {
      min-height: 62px;
      padding: 8px 6px;
    }
  }

@media (max-width: 900px) {
  .helmet-page .stats,
  .helmet-page .grid,
  .helmet-page .field-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .helmet-page { padding: 22px 14px 34px; }
  .helmet-page .hero { padding: 26px 18px; border-radius: 22px; }
  .helmet-page .hero h1 { font-size: 32px; line-height: 1.12; }
  .helmet-page .hero p { font-size: 15px; line-height: 1.55; }
  .helmet-page .stat-card,
  .helmet-page .panel { padding: 18px; border-radius: 20px; }
  .helmet-page .stats { gap: 12px; }
  .helmet-page .stat-value { font-size: 28px; }
  .helmet-page .field-grid { gap: 10px; }
  .helmet-page .field { margin-bottom: 10px; }
  .helmet-page input,
  .helmet-page select,
  .helmet-page .btn { min-height: 46px; font-size: 14px; }
  .helmet-page .calendar-grid,
  .helmet-page .weekday-row { gap: 6px; }
  .helmet-page .calendar-day { min-height: 58px; padding: 7px 5px; border-radius: 14px; }
  .helmet-page .calendar-day .day-number { font-size: 12px; }
  .helmet-page .calendar-day .day-caption { font-size: 10px; }
  .helmet-page .legend { gap: 8px; }
  .helmet-page .legend-item { font-size: 11px; }
}
